From f44cee9ec80ecf738c2f8e5147b42ac56ea8a59d Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Mon, 11 Mar 2024 10:14:47 +0800 Subject: [PATCH] =?UTF-8?q?prod-api=E6=94=B9=E6=88=90cac-api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- src/api/module/urls.js | 19 ++++++++++++------- vue.config.js | 2 +- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.env.production b/.env.production index 0e9361e..f97b4f1 100644 --- a/.env.production +++ b/.env.production @@ -2,4 +2,4 @@ ENV = 'production' # 管理系统/生产环境 -VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = '/cac-api' diff --git a/src/api/module/urls.js b/src/api/module/urls.js index 6f6965e..74c1efe 100644 --- a/src/api/module/urls.js +++ b/src/api/module/urls.js @@ -1,8 +1,13 @@ -const UPMS_SREVICE='/api-upms'; -const AUTH_SREVICE='/prod-api'; -const LOGS_SREVICE='/api-logs'; -const GEN_CODE_SREVICE='/api-gen'; -const SJZD_SREVICE='http://127.0.0.1:8081'; +const UPMS_SREVICE = "/api-upms"; +const AUTH_SREVICE = "/cac-api"; +const LOGS_SREVICE = "/api-logs"; +const GEN_CODE_SREVICE = "/api-gen"; +const SJZD_SREVICE = "http://127.0.0.1:8081"; - -export { UPMS_SREVICE, AUTH_SREVICE, LOGS_SREVICE, GEN_CODE_SREVICE,SJZD_SREVICE} \ No newline at end of file +export { + UPMS_SREVICE, + AUTH_SREVICE, + LOGS_SREVICE, + GEN_CODE_SREVICE, + SJZD_SREVICE, +}; diff --git a/vue.config.js b/vue.config.js index 403a11b..d8c05c9 100644 --- a/vue.config.js +++ b/vue.config.js @@ -57,7 +57,7 @@ module.exports = { //target: `http://127.0.0.1:8082/`, changeOrigin: true, pathRewrite: { - ["^/api"]: "/prod-api", + ["^/api"]: "/cac-api", }, // pathRewrite: { // ["^" + process.env.VUE_APP_BASE_API]: "",