|
|
@ -37,6 +37,7 @@ const menuItems = computed(() => [ |
|
|
{ label: '背包', icon: '🎒' }, |
|
|
{ label: '背包', icon: '🎒' }, |
|
|
{ label: '角色', icon: '👤' }, |
|
|
{ label: '角色', icon: '👤' }, |
|
|
{ label: isTraining.value ? '打坐中' : '打坐', icon: isTraining.value ? '🔥' : '🧘', isTraining: isTraining.value }, |
|
|
{ label: isTraining.value ? '打坐中' : '打坐', icon: isTraining.value ? '🔥' : '🧘', isTraining: isTraining.value }, |
|
|
|
|
|
{ label: '捡垃圾', icon: '🗑️' }, |
|
|
]) |
|
|
]) |
|
|
|
|
|
|
|
|
const handleLogout = () => { |
|
|
const handleLogout = () => { |
|
|
@ -54,6 +55,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('/scrap') |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|