|
|
@ -13,6 +13,7 @@ import trainingIcon from '@/assets/images/training.svg' |
|
|
import missionIcon from '@/assets/images/mission.svg' |
|
|
import missionIcon from '@/assets/images/mission.svg' |
|
|
import scrapIcon from '@/assets/images/scrap.svg' |
|
|
import scrapIcon from '@/assets/images/scrap.svg' |
|
|
import characterIco from '@/assets/images/character.svg' |
|
|
import characterIco from '@/assets/images/character.svg' |
|
|
|
|
|
import bagIcon from '@/assets/images/bag.svg' |
|
|
|
|
|
|
|
|
const authStore = useAuthStore() |
|
|
const authStore = useAuthStore() |
|
|
const characterStore = useCharacterStore() |
|
|
const characterStore = useCharacterStore() |
|
|
@ -42,6 +43,7 @@ const menuItems = computed(() => [ |
|
|
{ label: '任务', icon: missionIcon, useImage: true }, |
|
|
{ label: '任务', icon: missionIcon, useImage: true }, |
|
|
{ label: '角色', icon: characterIco, useImage: true }, |
|
|
{ label: '角色', icon: characterIco, useImage: true }, |
|
|
{ label: isTraining.value ? '打坐中' : '打坐', icon: trainingIcon, useImage: true, isTraining: isTraining.value }, |
|
|
{ label: isTraining.value ? '打坐中' : '打坐', icon: trainingIcon, useImage: true, isTraining: isTraining.value }, |
|
|
|
|
|
{ label: '背包', icon: bagIcon, useImage: true }, |
|
|
{ label: '捡垃圾', icon: scrapIcon, useImage: true }, |
|
|
{ label: '捡垃圾', icon: scrapIcon, useImage: true }, |
|
|
]) |
|
|
]) |
|
|
|
|
|
|
|
|
@ -64,6 +66,8 @@ const navigateTo = (item: { label: string }) => { |
|
|
router.push('/training') |
|
|
router.push('/training') |
|
|
} else if (item.label === '任务') { |
|
|
} else if (item.label === '任务') { |
|
|
router.push('/daily-mission') |
|
|
router.push('/daily-mission') |
|
|
|
|
|
} else if (item.label === '背包') { |
|
|
|
|
|
router.push('/bag') |
|
|
} else if (item.label === '捡垃圾') { |
|
|
} else if (item.label === '捡垃圾') { |
|
|
router.push('/scrap') |
|
|
router.push('/scrap') |
|
|
} |
|
|
} |
|
|
|