feat: 提示词

This commit is contained in:
2026-06-16 12:12:33 +08:00
parent 05fff65acf
commit d9b8567b6d
9 changed files with 113 additions and 26 deletions

View File

@@ -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
}
}