上线登录

This commit is contained in:
xuyue committed 2025-03-03 09:21:50 +08:00
1 parent a577fa4133
commit bc360d868e
4 files changed
+15 -9

No files matched your search

+5 -3
View File
@@ -68,9 +68,11 @@
</n-tab-pane>
<template #suffix>
<n-flex align="center" class="suffix">
<!-- <span>{{ username }}</span>
<n-button v-if="!authed" @click="handleLogin">登录</n-button>
<n-button v-else @click="handleLogout">退出</n-button> -->
<span>{{ username }}</span>
<n-button v-if="!authed" @click="handleLogin" secondary type="primary">
登录
</n-button>
<n-button v-else @click="handleLogout">退出</n-button>
</n-flex>
</template>
</n-tabs>