Add map(header),continue to map,login direct - map

This commit is contained in:
Annie committed 2023-11-21 21:13:33 +08:00
1 parent bdd37ae747
commit 174941a37e
4 files changed
+39 -5

No files matched your search

+17 -1
View File
@@ -15,7 +15,17 @@ const handleLogout = async () => {
reset()
router.push({ name: 'login' })
} catch (err) {
toast.error('Failed to logout')
// toast.error('Failed to logout')
toast.error('登出失敗')
console.error(err)
}
}
const handleMap = async () => {
try {
router.push({ name: 'map' })
} catch (err) {
// toast.error('Failed to load map')
toast.error('無法讀取地圖')
console.error(err)
}
}
@@ -65,6 +75,12 @@ const handleLogout = async () => {
class="text-text-primary h-full w-full"
/>
</button> -->
<button title="Map" @click="handleMap" class="h-5 w-5">
<font-awesome-icon
:icon="['fas', 'map']"
class="text-text-primary h-full w-full"
/>
</button>
<a
title="Bug Report"
:href="bugReportUrl"