Browse Source

feat(game): add bag menu entry in game view

master
qinhan 1 month ago
parent
commit
b9d72d29d1
  1. 4
      Build_God_Game/src/views/GameView.vue

4
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')
}

Loading…
Cancel
Save