diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..2a130b7 --- /dev/null +++ b/.env.development @@ -0,0 +1 @@ +VITE_APP_BASE_URL=http://192.168.5.106:48081 diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..0e56b9d --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +VITE_APP_BASE_URL=https://besure.ngsk.tech:7001 diff --git a/src/config.js b/src/config.js index 8d5322b..c50b84b 100644 --- a/src/config.js +++ b/src/config.js @@ -1,9 +1,6 @@ // 应用全局配置 const config = { - // baseUrl: 'http://47.106.185.127:48080',127.0.0.1 - // baseUrl: 'https://besure.ngsk.tech:7001', - baseUrl: 'http://192.168.5.106:48081', - // baseUrl: '', + baseUrl: import.meta.env.VITE_APP_BASE_URL, // 应用信息 appInfo: { // 应用名称