备份
This commit is contained in:
@@ -14,7 +14,9 @@ customHttp.interceptors.request.use((config) => {
|
||||
if (config.custom.target == "znzq") {
|
||||
config.baseURL = conf.getZnzqApiUrl()
|
||||
const token = uni.getStorageSync('token');
|
||||
config.headers["X-Access-Token"] = token;
|
||||
config.header["X-Access-Token"] = token;
|
||||
console.log("==================customHttp.interceptors.request.use")
|
||||
console.log(config)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user