修改token

This commit is contained in:
hyt 2024-09-26 10:31:37 +08:00
parent 7c9b0746bc
commit 1f6c58eeba
2 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ service.interceptors.request.use(
// if (window.localStorage.userToken) { // if (window.localStorage.userToken) {
let token = getToken() let token = getToken()
if (token) { if (token) {
config.headers['token'] = token config.headers['zt-token'] = token
} }
if (config.url.indexOf('updateDto') != -1 || config.url.indexOf('saveDto') != -1) { if (config.url.indexOf('updateDto') != -1 || config.url.indexOf('saveDto') != -1) {

View File

@ -40,12 +40,12 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://hzya.ufyct.com:9067/`, // 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://127.0.0.1:9081/`,
// target: `http://192.168.2.78:9999`, // target: `http://192.168.2.78:9999`,
// target: `http://192.168.2.85:9999`, // target: `http://192.168.2.85:9999`,
// target: `http://192.168.2.78:8080`, // 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.185:10086`,
// target: `http://192.168.2.83:9999`, // target: `http://192.168.2.83:9999`,
// target:'http://127.0.0.1:9999/', // target:'http://127.0.0.1:9999/',