refactor(auth): 重构认证模块以支持双token模式

将用户认证逻辑从user store迁移到token store
新增双token模式支持及相关类型定义
更新路由拦截器和http模块以适配新的认证结构
This commit is contained in:
feige996
2025-08-22 16:16:17 +08:00
parent 57924d47cc
commit 153a374469
8 changed files with 184 additions and 121 deletions

View File

@@ -170,3 +170,8 @@ export function getEnvBaseUploadUrl() {
return baseUploadUrl
}
/**
* 是否是双token模式
*/
export const isDoubleTokenMode = import.meta.env.VITE_AUTH_MODE === 'double'