session干扰

This commit is contained in:
lyd
2022-09-28 08:55:14 +08:00
parent 805792e5fa
commit a820a7fdf5
5 changed files with 24 additions and 49 deletions

View File

@@ -17,7 +17,6 @@ const service = axios.create({
// request拦截器
service.interceptors.request.use(
config => {
// debugger
if (getToken()) {
config.headers['Authorization'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
}