调整api类型

This commit is contained in:
宇阳
2024-08-06 19:49:30 +08:00
parent 3d2021af59
commit 9b8a93a893
7 changed files with 11 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ instance.interceptors.request.use(
(config: InternalAxiosRequestConfig) => {
const token = store.token
if(config.method === "get") return config
// if(config.method === "get") return config
// 如果有token就把赋值给请求头
if (token) config.headers["Authorization"] = `Bearer ${token}`;