From f9bade6a7cc83acf7ef8aee51723e50fb1a2742d Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Mon, 18 Apr 2022 11:08:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8E=A7=E5=88=B6=E4=B8=B4=E6=97=B6?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/NavHeader/AccountDropdown.vue | 2 +- src/router/profile/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layout/components/NavHeader/AccountDropdown.vue b/src/layout/components/NavHeader/AccountDropdown.vue index 8198ffff6..4f2014ab5 100644 --- a/src/layout/components/NavHeader/AccountDropdown.vue +++ b/src/layout/components/NavHeader/AccountDropdown.vue @@ -9,7 +9,7 @@ {{ $t('common.nav.Profile') }} {{ $t('common.nav.APIKey') }} - {{ $t('common.nav.TempPassword') }} + {{ $t('common.nav.TempPassword') }} {{ $t('common.nav.Logout') }} diff --git a/src/router/profile/index.js b/src/router/profile/index.js index f3f8957d5..30c8899d1 100644 --- a/src/router/profile/index.js +++ b/src/router/profile/index.js @@ -61,6 +61,7 @@ export default { meta: { title: i18n.t('common.nav.TempPassword'), icon: 'magic', + hidden: ({ settings }) => !settings['AUTH_TEMP_TOKEN'], permissions: [] } }