From c6aaaaf1fd241caf764aa960fc9c6de9376534d5 Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Tue, 19 Apr 2022 19:11:42 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E4=B8=B4=E6=97=B6?= =?UTF-8?q?=E5=AF=86=E7=A0=81route=E6=8E=A7=E5=88=B6?= 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 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layout/components/NavHeader/AccountDropdown.vue b/src/layout/components/NavHeader/AccountDropdown.vue index 4bc375a72..639b74968 100644 --- a/src/layout/components/NavHeader/AccountDropdown.vue +++ b/src/layout/components/NavHeader/AccountDropdown.vue @@ -13,7 +13,7 @@ {{ $t('common.nav.APIKey') }} - + {{ $t('common.nav.TempPassword') }} diff --git a/src/router/profile/index.js b/src/router/profile/index.js index a1652ead7..d015ce20e 100644 --- a/src/router/profile/index.js +++ b/src/router/profile/index.js @@ -62,7 +62,7 @@ export default { title: i18n.t('common.nav.TempPassword'), icon: 'magic', hidden: ({ settings }) => !settings['AUTH_TEMP_TOKEN'], - permissions: [] + permissions: ['authentication.view_temptoken'] } } ]