Skip to content

Commit 26e7e89

Browse files
committed
修复移动端登出问题
1 parent d4ccd4c commit 26e7e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

front/src/components/NavHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
</div>
7979
{{ themeStore.isDarkTheme ? '浅色模式' : '深色模式' }}
8080
</button>
81-
<button v-if="showLogout" @click="$emit('logout')"
81+
<button v-if="showLogout" @click="handleLogout"
8282
class="flex items-center gap-3 px-3 py-2 rounded-md bg-gray-100 dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700">
8383
<div class="i-mdi-logout text-gray-400 dark:text-gray-300">
8484
</div>

0 commit comments

Comments
 (0)