diff --git a/DESIGN.md b/DESIGN.md index 46800dc..f56fed2 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -5,7 +5,8 @@ - Pokopia Wiki 是一个面向 Pokopia 游戏资料的社区 Wiki。 - 所有人都可以浏览 Wiki 内容。 - 已注册并完成邮箱验证且拥有对应权限的用户可以创建、编辑、删除 Wiki 内容。 -- 前台以 Pokemon、栖息地、物品、材料单、每日 CheckList、Life、Automation、Dish、Events、Actions、Dream Island、Clothes 为主要浏览入口。 +- 前台以 Home 首页、Pokemon、栖息地、物品、材料单、每日 CheckList、Life、Automation、Dish、Events、Actions、Dream Island、Clothes 为主要浏览入口。 +- Home 首页路径为 `/`,用于聚合公开 Wiki 入口;Logo 导航回到 Home,用户可从 Home 进入核心资料、每日 CheckList、Life 和正在准备中的分区。 - 管理入口用于维护全局配置、语言、系统文案、列表排序和每日 CheckList。 ## 技术栈 diff --git a/frontend/src/App.vue b/frontend/src/App.vue index ebcf04a..461d896 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -13,6 +13,7 @@ import { iconDreamIsland, iconEvent, iconHabitat, + iconHome, iconItem, iconLife, iconPokemon, @@ -42,6 +43,7 @@ function can(permissionKey: string) { const navItems = computed(() => { const items = [ + { label: t('nav.home'), to: '/', icon: iconHome }, { label: t('nav.pokemon'), to: '/pokemon', icon: iconPokemon }, { label: t('nav.habitats'), to: '/habitats', icon: iconHabitat }, { label: t('nav.items'), to: '/items', icon: iconItem }, @@ -87,7 +89,7 @@ async function logout() { currentUser.value = null; setAuthToken(null); - await router.push('/pokemon'); + await router.push('/'); } async function loadLanguages() { diff --git a/frontend/src/components/AppShell.vue b/frontend/src/components/AppShell.vue index e572fe5..2f0ea20 100644 --- a/frontend/src/components/AppShell.vue +++ b/frontend/src/components/AppShell.vue @@ -110,7 +110,7 @@ onBeforeUnmount(() => {