From a353322454d549e3178ee394ad140a2146ab5452 Mon Sep 17 00:00:00 2001 From: chenchun Date: Mon, 27 Apr 2026 02:44:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=AD=98=E5=82=A8=E5=8F=8A=E7=9B=B8=E5=85=B3=E6=BC=94?= =?UTF-8?q?=E7=A4=BA=E7=94=A8=E6=88=B7=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pages/index.vue | 15 +-------------- app/stores/user.ts | 26 -------------------------- 2 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 app/stores/user.ts diff --git a/app/pages/index.vue b/app/pages/index.vue index e198d9b..956b71a 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -2,25 +2,16 @@ import { computed, ref, watch } from 'vue' import { useI18n } from 'vue-i18n' import { useHead, useSeoMeta } from '#imports' -import { useUserStore } from '~/stores/user' import { useAppStore } from '~/stores/app' import { usePageScrollLock } from '~/composables/usePageScrollLock' import HomeIntro from '~/components/home/HomeIntro.vue' import HomeHero from '~/components/home/HomeHero.vue' const { t } = useI18n() -const userStore = useUserStore() const appStore = useAppStore() const isIntroActive = ref(true) -const demoUserName = computed(() => userStore.displayName) -const demoUserRole = computed(() => userStore.role) - -if (!userStore.isLoggedIn) { - userStore.loadDemoUser() -} - // 保证即使 Lenis 还没加载完成,也能通过原生 CSS 锁定页面 useHead({ htmlAttrs: { @@ -57,11 +48,7 @@ watch(() => appStore.isAppLoading, async (isLoading) => {