fix: showPassword (#192)

This commit is contained in:
Dream Hunter
2024-05-04 00:01:55 +08:00
committed by GitHub
parent 55ae4d9d8e
commit 91a01784db
2 changed files with 9 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ const { toClipboard } = useClipboard()
const message = useMessage()
const {
jwt, localeCache, toggleDark, isDark, settings,
jwt, localeCache, toggleDark, isDark, settings, showPassword,
showAuth, adminAuth, auth, loading
} = useGlobalState()
const route = useRoute()
@@ -269,6 +269,14 @@ onMounted(async () => {
</n-card>
</div>
</div>
<n-modal v-model:show="showPassword" preset="dialog" :title="t('password')">
<span>
<p>{{ t("passwordTip") }}</p>
</span>
<n-card>
<b>{{ jwt }}</b>
</n-card>
</n-modal>
<n-modal v-model:show="showAuth" :closable="false" :closeOnEsc="false" :maskClosable="false" preset="dialog"
:title="t('accessHeader')">
<p>{{ t('accessTip') }}</p>

View File

@@ -89,14 +89,6 @@ const deleteAccount = async () => {
{{ t('delteAccount') }}
</n-button>
</n-card>
<n-modal v-model:show="showPassword" preset="dialog" :title="t('password')">
<span>
<p>{{ t("passwordTip") }}</p>
</span>
<n-card>
<b>{{ jwt }}</b>
</n-card>
</n-modal>
<n-modal v-model:show="showLogout" preset="dialog" :title="t('logout')">
<p>{{ t('logoutConfirm') }}</p>
<template #action>