diff --git a/examples/router/axios.js b/examples/router/axios.js index e935da65..b92e5090 100644 --- a/examples/router/axios.js +++ b/examples/router/axios.js @@ -9,6 +9,10 @@ let baseURLs = { instance.defaults.baseURL = baseURLs[process.env.NODE_ENV] instance.interceptors.request.eject(0); instance.interceptors.request.use(config => { + if (/^\/xiushan/.test(location.pathname)) { + config.baseURL = "/xsjr" + config.url = config.url.replace(/(app|auth|admin)\//, "") + } if (!config.withoutToken && localStorage.getItem("ui-token")) { config.headers['Authorization'] = ["Bearer", localStorage.getItem("ui-token")].join(" ") } diff --git a/project/xiushan/apps/AppAccountXiushan/AppAccountXiushan.vue b/project/xiushan/apps/AppAccountXiushan/AppAccountXiushan.vue new file mode 100644 index 00000000..7f70d9df --- /dev/null +++ b/project/xiushan/apps/AppAccountXiushan/AppAccountXiushan.vue @@ -0,0 +1,269 @@ + + + + + diff --git a/project/xiushan/core.import.json b/project/xiushan/core.import.json index ef8fa998..9ed96e91 100644 --- a/project/xiushan/core.import.json +++ b/project/xiushan/core.import.json @@ -1,5 +1,4 @@ { - "AppAccount": "账号管理", "AppDictionary": "数据字典", "AppQyWxConfig": "企业微信配置", "AppUserInfo": "个人中心", diff --git a/vue.config.js b/vue.config.js index 55e5c84b..2094746a 100644 --- a/vue.config.js +++ b/vue.config.js @@ -64,11 +64,7 @@ module.exports = { proxy: { //设置代理,可解决跨5 '/lan': { - // target: "https://gsgate.cunwuyun.cn/", target: 'http://192.168.1.87:9000/', - // target: "http://192.168.1.113:9998/", - // target: "http://192.168.1.245:9000/", - // target: "http://192.168.1.34:19898", changeOrigin: true, pathRewrite: { //地址重写 @@ -85,6 +81,14 @@ module.exports = { '^/oms/admin/': '/', '^/oms': '/' } + }, + '/xsjr': { + target: 'http://192.168.1.87:39898', + changeOrigin: true, + pathRewrite: { + //地址重写 + '^/xsjr': '/' + } } }, disableHostCheck: true