|
@@ -19,6 +19,9 @@ function noticeMsg (dataAxios, type) {
|
|
|
if (!dataAxios.msg) {
|
|
if (!dataAxios.msg) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!dataAxios.message) {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
Message({
|
|
Message({
|
|
|
message: dataAxios.msg,
|
|
message: dataAxios.msg,
|
|
|
type: type,
|
|
type: type,
|
|
@@ -67,7 +70,7 @@ service.interceptors.request.use(
|
|
|
}
|
|
}
|
|
|
loading.show(config)
|
|
loading.show(config)
|
|
|
// 在请求发送之前做一些处理
|
|
// 在请求发送之前做一些处理
|
|
|
- config.headers['Tenant'] = process.env.VUE_APP_TENANT
|
|
|
|
|
|
|
+ config.headers['Tenant'] = process.env.VUE_APP_TENANT
|
|
|
const token = util.cookies.get('token')
|
|
const token = util.cookies.get('token')
|
|
|
if (token !== undefined) {
|
|
if (token !== undefined) {
|
|
|
// 让每个请求携带token-- ['Authorization']为自定义key 请根据实际情况自行修改
|
|
// 让每个请求携带token-- ['Authorization']为自定义key 请根据实际情况自行修改
|