From b9d72d29d1879371b867e05f987ee858f16a0178 Mon Sep 17 00:00:00 2001 From: qinhan Date: Fri, 10 Apr 2026 15:43:30 +0800 Subject: [PATCH] feat(game): add bag menu entry in game view --- Build_God_Game/src/views/GameView.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Build_God_Game/src/views/GameView.vue b/Build_God_Game/src/views/GameView.vue index f5fc1fc..6e9375d 100644 --- a/Build_God_Game/src/views/GameView.vue +++ b/Build_God_Game/src/views/GameView.vue @@ -13,6 +13,7 @@ import trainingIcon from '@/assets/images/training.svg' import missionIcon from '@/assets/images/mission.svg' import scrapIcon from '@/assets/images/scrap.svg' import characterIco from '@/assets/images/character.svg' +import bagIcon from '@/assets/images/bag.svg' const authStore = useAuthStore() const characterStore = useCharacterStore() @@ -42,6 +43,7 @@ const menuItems = computed(() => [ { label: '任务', icon: missionIcon, useImage: true }, { label: '角色', icon: characterIco, useImage: true }, { label: isTraining.value ? '打坐中' : '打坐', icon: trainingIcon, useImage: true, isTraining: isTraining.value }, + { label: '背包', icon: bagIcon, useImage: true }, { label: '捡垃圾', icon: scrapIcon, useImage: true }, ]) @@ -64,6 +66,8 @@ const navigateTo = (item: { label: string }) => { router.push('/training') } else if (item.label === '任务') { router.push('/daily-mission') + } else if (item.label === '背包') { + router.push('/bag') } else if (item.label === '捡垃圾') { router.push('/scrap') }