diff --git a/src/App.vue b/src/App.vue index c05d9af5..319681ba 100644 --- a/src/App.vue +++ b/src/App.vue @@ -33,10 +33,8 @@ import TBackTop from "./components/t-backTop.vue"; import { fs, window, app, event } from "@tauri-apps/api"; // store import { useAppStore } from "./store/modules/app"; -import { useUserStore } from "./store/modules/user"; const appStore = useAppStore(); -const userStore = useUserStore(); const isMain = ref(true as boolean); const theme = ref(appStore.theme as string); @@ -52,8 +50,6 @@ onMounted(async () => { await win.setTitle(title); await checkLoad(); } - // 保存 cookie - await userStore.initCookie(); }); // 监听主题变化 diff --git a/src/components/t-sidebar.vue b/src/components/t-sidebar.vue index 68642ecc..b72fc035 100644 --- a/src/components/t-sidebar.vue +++ b/src/components/t-sidebar.vue @@ -106,14 +106,14 @@
- + - + + + {{ userInfo.nickname }} uid:{{ userInfo.uid }} + + + 未登录,请输入 Cookie 登录! + + + + 系统信息 @@ -158,7 +177,7 @@