mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-17 14:43:41 +08:00
fixed bug for: websocket is not auto connected when user not login
This commit is contained in:
@@ -10,6 +10,7 @@ export const useSharedStore = defineStore('shared', {
|
||||
messageHandlers:{},
|
||||
mobileTheme: Storage.get("mobile_theme", "light"),
|
||||
adminTheme: Storage.get("admin_theme", "light"),
|
||||
isLogin: false
|
||||
}),
|
||||
getters: {},
|
||||
actions: {
|
||||
@@ -64,6 +65,9 @@ export const useSharedStore = defineStore('shared', {
|
||||
setAdminTheme(theme) {
|
||||
this.adminTheme = theme
|
||||
Storage.set("admin_theme", theme)
|
||||
},
|
||||
setIsLogin(value) {
|
||||
this.isLogin = value
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user