refactor: theme

This commit is contained in:
xiaoxian521
2021-10-27 09:03:12 +08:00
parent 25c37bb2fa
commit fc4bfc35d7
12 changed files with 288 additions and 348 deletions

View File

@@ -21,9 +21,7 @@ export const useAppStore = defineStore({
: true,
withoutAnimation: false
},
layout:
storageLocal.getItem("responsive-layout")?.layout.match(/(.*)-/)[1] ??
"vertical",
layout: storageLocal.getItem("responsive-layout")?.layout ?? "vertical",
device: deviceDetection() ? "mobile" : "desktop"
}),
getters: {