diff --git a/.env b/.env index 8360fc2..50f8917 100644 --- a/.env +++ b/.env @@ -16,15 +16,16 @@ VITE_OAUTH2_APP_CLIENT='mini:mini' VITE_OAUTH2_ZZDSHAPP_CLIENT='zzdsh:zzdsh' -# VITE_APP_DEV_SERVICE =http://123.156.230.15:8089/api +VITE_APP_DEV_SERVICE = http://127.0.0.1:9999 +#VITE_APP_DEV_SERVICE =http://123.156.230.15:8089/api # VITE_APP_DEV_SERVICE =http://123.156.230.15:8089/app-api # VITE_APP_DEV_SERVICE =http://123.156.228.134:48080/app-api # VITE_APP_DEV_SERVICE = https://stgl.pj.gov.cn/app-api -VITE_APP_DEV_SERVICE = http://192.168.101.24:48080/app-api +#VITE_APP_DEV_SERVICE = http://192.168.101.24:48080/app-api # ******************** end 开发环境 end ******************** # ******************** start 生产环境 start ******************** #VITE_APP_PROD_SERVICE = http://123.156.228.134:48080/app-api -VITE_APP_PROD_SERVICE = https://stgl.pj.gov.cn/app-api -# ******************** end 生产环境 end ******************** \ No newline at end of file +#VITE_APP_PROD_SERVICE = https://stgl.pj.gov.cn/app-api +# ******************** end 生产环境 end ******************** diff --git a/package.json b/package.json index 9c3da15..d41bb0c 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "dayjs": "^1.11.13", "luch-request": "^3.1.1", "pinia": "^2.2.6", + "qs": "^6.13.1", "radash": "^12.1.0", "vue": "^3.3.11", "vue-i18n": "^9.1.9", @@ -86,4 +87,4 @@ "vite": "5.2.8", "vue-tsc": "^1.0.24" } -} \ No newline at end of file +} diff --git a/src/sheep/api/user.ts b/src/sheep/api/user.ts index 974650d..75e05fc 100644 --- a/src/sheep/api/user.ts +++ b/src/sheep/api/user.ts @@ -48,6 +48,7 @@ export default { params.grant_type = "password"; params.scope = "server"; params.code = ""; + request({ url: `/auth/oauth2/token`, method: "POST", diff --git a/vite.config.ts b/vite.config.ts index fff433a..aadf39b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -32,10 +32,10 @@ export default defineConfig(({ mode }) => { }, }, server: { - port: 8001, + port: 8088, hmr: true, // 启用热更新 proxy: { - "/api": { + '/api': { target: baseUrl, // 目标服务器地址 changeOrigin: true, // 是否修改请求头中的 Origin 字段 rewrite: (path) => path.replace(/^\/api/, ""),