医生管理
This commit is contained in:
@@ -8,7 +8,7 @@ const service = axios.create({
|
||||
baseURL:import.meta.env.VITE_BASE_URL,
|
||||
timeout: 8000,
|
||||
headers:{
|
||||
'Content-Type':'application/x-www-form-urlencoded',
|
||||
'Content-Type':'application/json',
|
||||
'Authorization':''
|
||||
}
|
||||
});
|
||||
@@ -21,7 +21,7 @@ service.interceptors.request.use(
|
||||
// 设置请求头部 Authorization
|
||||
if (store.token) {
|
||||
config.headers['Authorization'] = 'Bearer ' + store.token;
|
||||
config.headers['Content-Type'] = 'application/json'
|
||||
//config.headers['Content-Type'] = 'multipart/form-data'
|
||||
}
|
||||
return config;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user