diff --git a/app/src/components/ControlPalette.vue b/app/src/components/ControlPalette.vue index 8aacd63..6e6655a 100644 --- a/app/src/components/ControlPalette.vue +++ b/app/src/components/ControlPalette.vue @@ -1,5 +1,17 @@ - + + + + + + + 問卷 + + + { diff --git a/app/src/components/GameHeaderPart.vue b/app/src/components/GameHeaderPart.vue index 20cd327..bac13d9 100644 --- a/app/src/components/GameHeaderPart.vue +++ b/app/src/components/GameHeaderPart.vue @@ -3,7 +3,7 @@ import { defineProps, onMounted } from 'vue' import { useRouter } from 'vue-router' import { useToast } from 'vue-toastification' import { logout } from '../utils/auth' -import { bugReportUrl } from '../config' +import { bugReportUrl, surveyUrl } from '../config' import { reset } from '../store/session' import userProfileStore, { loadUserProfile, @@ -35,6 +35,15 @@ const handleMap = async () => { console.error(err) } } +const handleLeaderBoard = async () => { + try { + router.push({ name: 'leaderboard' }) + } catch (err) { + // toast.error('Failed to load map') + toast.error('無法讀取排行榜') + console.error(err) + } +} defineProps({ title: { @@ -110,6 +119,18 @@ onMounted(async () => { > {{ userProfileStore.username }}
+ + 問卷 +