prod-api改成cac-api

newHome1.0
fanluyan 1 year ago
parent ac5a00ef4a
commit f44cee9ec8

@ -2,4 +2,4 @@
ENV = 'production' ENV = 'production'
# 管理系统/生产环境 # 管理系统/生产环境
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = '/cac-api'

@ -1,8 +1,13 @@
const UPMS_SREVICE='/api-upms'; const UPMS_SREVICE = "/api-upms";
const AUTH_SREVICE='/prod-api'; const AUTH_SREVICE = "/cac-api";
const LOGS_SREVICE='/api-logs'; const LOGS_SREVICE = "/api-logs";
const GEN_CODE_SREVICE='/api-gen'; const GEN_CODE_SREVICE = "/api-gen";
const SJZD_SREVICE='http://127.0.0.1:8081'; const SJZD_SREVICE = "http://127.0.0.1:8081";
export {
export { UPMS_SREVICE, AUTH_SREVICE, LOGS_SREVICE, GEN_CODE_SREVICE,SJZD_SREVICE} UPMS_SREVICE,
AUTH_SREVICE,
LOGS_SREVICE,
GEN_CODE_SREVICE,
SJZD_SREVICE,
};

@ -57,7 +57,7 @@ module.exports = {
//target: `http://127.0.0.1:8082/`, //target: `http://127.0.0.1:8082/`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
["^/api"]: "/prod-api", ["^/api"]: "/cac-api",
}, },
// pathRewrite: { // pathRewrite: {
// ["^" + process.env.VUE_APP_BASE_API]: "", // ["^" + process.env.VUE_APP_BASE_API]: "",

Loading…
Cancel
Save