添加ai_token

This commit is contained in:
2026-08-31 17:16:37 +08:00
parent bc629e9189
commit a4c7adb317
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -131,6 +131,7 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
async function loginByToken(loginToken: Api.Auth.LoginToken) {
// 1. stored in the localStorage, the later requests need it in headers
localStg.set('token', loginToken.token);
localStg.set('aiToken', loginToken.ai_token);
// 2. get user info
const pass = await getUserInfo();