初步打通相关流程

This commit is contained in:
BTMuli
2023-09-04 01:12:19 +08:00
parent 4f6f065645
commit bda4966ae5
11 changed files with 257 additions and 185 deletions

View File

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