From 9933de3252e4fb677876cae20b05b9d64a1ae90e Mon Sep 17 00:00:00 2001 From: "YUN-PC5\\user" Date: Tue, 2 Jan 2024 13:21:16 +0800 Subject: [PATCH] =?UTF-8?q?pinia=E5=A2=9E=E5=8A=A0=E6=8C=81=E4=B9=85?= =?UTF-8?q?=E5=8C=96=E6=8F=92=E4=BB=B6=EF=BC=8C=E5=BC=80=E5=8F=91=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=8F=96=E6=B6=88=E5=8A=A8=E7=94=BB=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E7=99=BD=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/layout/index.vue | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7dd0f95..6cd0dad 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "md-editor-v3": "^1.11.11", "nprogress": "0.2.0", "pinia": "^2.0.33", + "pinia-plugin-persistedstate": "^3.2.1", "qs": "^6.11.0", "sortablejs": "^1.15.0", "vue": "^3.3.4", diff --git a/src/layout/index.vue b/src/layout/index.vue index 7500dde..f962999 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -21,11 +21,14 @@ - + + + + @@ -47,7 +50,7 @@ import iframeToggle from './components/IframeToggle/index' import useAppStore from '@/store/modules/app' import useSettingsStore from '@/store/modules/settings' import useTagsViewStore from '@/store/modules/tagsView' - +const dev = import.meta.env.DEV const settingsStore = useSettingsStore() const theme = computed(() => settingsStore.theme) const sidebar = computed(() => useAppStore().sidebar)