'权限加在请求头'
This commit is contained in:
@@ -75,7 +75,7 @@ service.interceptors.request.use(
|
|||||||
typeof config.data.auth != 'undefined'
|
typeof config.data.auth != 'undefined'
|
||||||
) {
|
) {
|
||||||
config.headers.Auth = config.data.auth;
|
config.headers.Auth = config.data.auth;
|
||||||
// delete config.data.auth
|
delete config.data.auth
|
||||||
}
|
}
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
|
|||||||
Reference in New Issue
Block a user