feat: 提示词
This commit is contained in:
@@ -63,11 +63,11 @@ class RequestClient {
|
||||
config.url = resolvePathParams(config.url, reqConfig.pathParams)
|
||||
}
|
||||
|
||||
// 跳过鉴权时不注入 token
|
||||
// 跳过鉴权时不注入 saToken
|
||||
if (!reqConfig?.skipAuth) {
|
||||
const accountStore = useAccountStore()
|
||||
if (accountStore.token) {
|
||||
config.headers.Authorization = `Bearer ${accountStore.token}`
|
||||
config.headers.saToken = accountStore.token
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user