🎨 根据实际情况修正

This commit is contained in:
BTMuli
2023-05-21 16:54:23 +08:00
parent 821014c0a2
commit 068f018d9e
7 changed files with 115 additions and 32 deletions

View File

@@ -2,7 +2,7 @@
* @file store modules app.ts
* @description App store module
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha v0.1.4
* @since Alpha v0.1.5
*/
// vue
@@ -42,6 +42,8 @@ export const useAppStore = defineStore(
const devMode = ref(false);
// 应用主题
const theme = ref("default");
// 是否登录
const isLogin = ref(false);
const dataPath = reactive({
userDataDir,
@@ -75,6 +77,7 @@ export const useAppStore = defineStore(
}
return {
isLogin,
theme,
loading,
buildTime,
@@ -97,7 +100,7 @@ export const useAppStore = defineStore(
{
key: "app",
storage: window.localStorage,
paths: ["devMode", "loading", "buildTime"],
paths: ["devMode", "loading", "buildTime", "isLogin"],
},
{
key: "sidebar",