fix(layout): fix useLockPage not work, fix #611

This commit is contained in:
Vben 2021-05-18 23:22:39 +08:00
parent d7d6039876
commit 3bb6d11ed1
2 changed files with 5 additions and 8 deletions

View File

@ -19,6 +19,7 @@
/>
<MenuDivider v-if="getShowDoc" />
<MenuItem
v-if="getUseLockPage"
key="lock"
:text="t('layout.header.tooltipLock')"
icon="ion:lock-closed-outline"
@ -70,7 +71,7 @@
setup() {
const { prefixCls } = useDesign('header-user-dropdown');
const { t } = useI18n();
const { getShowDoc } = useHeaderSetting();
const { getShowDoc, getUseLockPage } = useHeaderSetting();
const userStore = useUserStore();
const getUserInfo = computed(() => {
@ -116,6 +117,7 @@
getShowDoc,
headerImg,
register,
getUseLockPage,
};
},
});

View File

@ -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,