医生管理

This commit is contained in:
zoujiandong
2023-07-12 19:03:47 +08:00
parent 3b666aa539
commit 2c69c3dae5
10 changed files with 627 additions and 171 deletions
+2 -2
View File
@@ -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;
},