From 3bb6d11ed1b33adbfd6c76a0e06442cd62356ab7 Mon Sep 17 00:00:00 2001 From: Vben Date: Tue, 18 May 2021 23:22:39 +0800 Subject: [PATCH] fix(layout): fix useLockPage not work, fix #611 --- .../default/header/components/user-dropdown/index.vue | 4 +++- src/layouts/default/header/index.vue | 9 ++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/layouts/default/header/components/user-dropdown/index.vue b/src/layouts/default/header/components/user-dropdown/index.vue index bdc5e7f9..e51d931c 100644 --- a/src/layouts/default/header/components/user-dropdown/index.vue +++ b/src/layouts/default/header/components/user-dropdown/index.vue @@ -19,6 +19,7 @@ /> { @@ -116,6 +117,7 @@ getShowDoc, headerImg, register, + getUseLockPage, }; }, }); diff --git a/src/layouts/default/header/index.vue b/src/layouts/default/header/index.vue index b15e021d..4c7b9b1f 100644 --- a/src/layouts/default/header/index.vue +++ b/src/layouts/default/header/index.vue @@ -112,15 +112,11 @@ getMenuWidth, getIsMixSidebar, } = useMenuSetting(); - const { - getUseErrorHandle, - getShowSettingButton, - getSettingButtonPosition, - } = useRootSetting(); + const { getUseErrorHandle, getShowSettingButton, getSettingButtonPosition } = + useRootSetting(); const { getHeaderTheme, - getUseLockPage, getShowFullScreen, getShowNotice, getShowContent, @@ -189,7 +185,6 @@ getShowLocalePicker, getShowFullScreen, getShowNotice, - getUseLockPage, getUseErrorHandle, getLogoWidth, getIsMixSidebar,