use websocket

This commit is contained in:
landaiqing
2024-08-17 20:01:23 +08:00
parent 3140eaca99
commit 0c3edc360c
12 changed files with 223 additions and 21 deletions

View File

@@ -16,6 +16,6 @@ export default function useStore() {
return {
user: isAutoLogin() ? useAuthStore() : useAuthSessionStore(), // 自动登录时使用 useAuthStore否则使用 useAuthSessionStore
theme: useThemeStore(),
lang: langStore()
lang: langStore(),
};
}

View File

@@ -7,7 +7,7 @@ export const useAuthSessionStore = defineStore(
() => {
const user: any = reactive({
accessToken: '',
userId: '',
uid: '',
refreshToken: '',
expiresAt: 0,
});

View File

@@ -7,7 +7,7 @@ export const useAuthStore = defineStore(
() => {
const user: any = reactive({
accessToken: '',
userId: '',
uid: '',
refreshToken: '',
expiresAt: 0,
});