refactor(modules/web): arrange storeToRefs destruct

This commit is contained in:
Xwite
2024-10-02 21:38:40 +08:00
parent 320bd3d075
commit 01b031806b
10 changed files with 56 additions and 44 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ export const useBookStore = defineStore("book", {
state: () => {
return {
connectStatus: "正在连接后端服务器……",
/**@type {"primary" | "success" |"danger"} */
connectType: "primary",
newConnect: true,
/**@type {Array<{respondTime:number}>} */
@@ -53,7 +54,7 @@ export const useBookStore = defineStore("book", {
theme: (state) => {
return state.config.theme
},
isDark: (state) => state.config.theme == 6,
isNight: (state) => state.config.theme == 6,
},
actions: {
setConnectStatus(connectStatus) {