diff --git a/examples/router/axios.js b/examples/router/axios.js index 6d780491..ffb85312 100644 --- a/examples/router/axios.js +++ b/examples/router/axios.js @@ -24,7 +24,7 @@ instance.interceptors.request.use(config => { } else if (/#url-/.test(location.hash)) { config.baseURL = location.hash.replace(/#url-/, '/') } - if (["/xsjr", "/omsapi", "/tfx"].includes(config.baseURL)) { + if (["/xsjr", "/omsapi", "/tfx", "/qxn"].includes(config.baseURL)) { config.url = config.url.replace(/(app|auth|admin|api)\//, "") } return config diff --git a/vue.config.js b/vue.config.js index babd81cf..3638bf84 100644 --- a/vue.config.js +++ b/vue.config.js @@ -129,7 +129,7 @@ module.exports = { } }, '/qxn': { - target: 'http://192.168.1.87:12000', + target: 'http://192.168.1.87:12001', changeOrigin: true, pathRewrite: { //地址重写