feat: 双token

This commit is contained in:
2026-06-16 16:16:47 +08:00
parent d9b8567b6d
commit 172c83ea73
8 changed files with 455 additions and 79 deletions
+3 -3
View File
@@ -63,11 +63,11 @@ class RequestClient {
config.url = resolvePathParams(config.url, reqConfig.pathParams)
}
// 跳过鉴权时不注入 saToken
// 跳过鉴权时不注入 saToken(Access Token)
if (!reqConfig?.skipAuth) {
const accountStore = useAccountStore()
if (accountStore.token) {
config.headers.saToken = accountStore.token
if (accountStore.accessToken) {
config.headers.saToken = accountStore.accessToken
}
}