delete redundant code

This commit is contained in:
Annie Huang committed 2024-04-06 22:06:29 +08:00
1 parent 980d0497f4
commit df980a7d56
4 files changed
+2 -19

No files matched your search

+1 -1
View File
@@ -2,6 +2,6 @@
<font-awesome-icon :icon="['fas', 'list']" class="text-text-primary p-1" />
<h1 id="CommandBook" class="inline text-text-primary font-xl">指令之書</h1>
<div id="cheatsheets">
<p class="text-text-secondary">--指令列表--</p>
<p class="text-text-secondary">-- --指令列表-- --</p>
</div>
</template>
-12
View File
@@ -26,7 +26,6 @@ const backtoMap = async () => {
try {
router.push({ name: 'map' })
} catch (err) {
// useToast().error('Failed to load map')
toast.error('無法讀取地圖')
console.error(err)
}
@@ -60,17 +59,6 @@ setTimeout(() => {
<p class="text-base text-text text-center">
接下來回到地圖,迎接新的挑戰吧!
</p>
<!-- <p class="text-base text-text">
您已成功完成挑戰,真的非常感謝您的參與!<br />
如果您能撥冗填寫這份問卷,我們將不勝感激,這對我們非常重要!
</p> -->
<!-- <a
id="SurveyButton"
:href="surveyUrl"
target="_blank"
class="inline-flex justify-center rounded-lg text-base font-black py-2 mt-3 bg-text-primary w-full"
>填寫問卷</a
> -->
<a
id="BacktoMap"
target="_blank"
+1 -5
View File
@@ -27,16 +27,12 @@ const right = () => {
<template>
<div class="h-full flex flex-col">
<!-- Hint Header -->
<div class="flex items-center p-2 h-10">
<font-awesome-icon
:icon="['far', 'lightbulb']"
class="text-yellow-200 p-2 content-center"
/>
<h1 class="inline text-text w-1/2 font-xl p-2 m-1">
<!-- Hint -->
提示
</h1>
<h1 class="inline text-text w-1/2 font-xl p-2 m-1">提示</h1>
<div v-if="current !== -1" class="flex w-full justify-end items-end">
<button
class="p-2 m-1 w-1/8"
@@ -21,7 +21,6 @@ const handleLogout = async () => {
reset()
router.push({ name: 'login' })
} catch (err) {
// toast.error('Failed to logout')
toast.error('登出失敗')
console.error(err)
}