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]: "",