diff --git a/src/utils/request.js b/src/utils/request.js index 7c7ba6f..c653efb 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -64,7 +64,7 @@ service.interceptors.request.use( // if (window.localStorage.userToken) { let token = getToken() if (token) { - config.headers['token'] = token + config.headers['zt-token'] = token } if (config.url.indexOf('updateDto') != -1 || config.url.indexOf('saveDto') != -1) { diff --git a/vue.config.js b/vue.config.js index 5505811..9139531 100644 --- a/vue.config.js +++ b/vue.config.js @@ -40,12 +40,12 @@ module.exports = { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { // target: `http://hzya.ufyct.com:9067/`, - //target: `http://ufidahz.com.cn:9067/`, + target: `http://ufidahz.com.cn:9067/`, // target: `http://127.0.0.1:9081/`, // target: `http://192.168.2.78:9999`, // target: `http://192.168.2.85:9999`, // target: `http://192.168.2.78:8080`, - target: `http://192.168.2.78:10086`, + // target: `http://192.168.2.78:10086`, // target: `http://192.168.2.185:10086`, // target: `http://192.168.2.83:9999`, // target:'http://127.0.0.1:9999/',