mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-01-24 02:00:22 +08:00
fix(layout): fix useLockPage not work, fix #611
This commit is contained in:
parent
d7d6039876
commit
3bb6d11ed1
@ -19,6 +19,7 @@
|
|||||||
/>
|
/>
|
||||||
<MenuDivider v-if="getShowDoc" />
|
<MenuDivider v-if="getShowDoc" />
|
||||||
<MenuItem
|
<MenuItem
|
||||||
|
v-if="getUseLockPage"
|
||||||
key="lock"
|
key="lock"
|
||||||
:text="t('layout.header.tooltipLock')"
|
:text="t('layout.header.tooltipLock')"
|
||||||
icon="ion:lock-closed-outline"
|
icon="ion:lock-closed-outline"
|
||||||
@ -70,7 +71,7 @@
|
|||||||
setup() {
|
setup() {
|
||||||
const { prefixCls } = useDesign('header-user-dropdown');
|
const { prefixCls } = useDesign('header-user-dropdown');
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { getShowDoc } = useHeaderSetting();
|
const { getShowDoc, getUseLockPage } = useHeaderSetting();
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
|
|
||||||
const getUserInfo = computed(() => {
|
const getUserInfo = computed(() => {
|
||||||
@ -116,6 +117,7 @@
|
|||||||
getShowDoc,
|
getShowDoc,
|
||||||
headerImg,
|
headerImg,
|
||||||
register,
|
register,
|
||||||
|
getUseLockPage,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -112,15 +112,11 @@
|
|||||||
getMenuWidth,
|
getMenuWidth,
|
||||||
getIsMixSidebar,
|
getIsMixSidebar,
|
||||||
} = useMenuSetting();
|
} = useMenuSetting();
|
||||||
const {
|
const { getUseErrorHandle, getShowSettingButton, getSettingButtonPosition } =
|
||||||
getUseErrorHandle,
|
useRootSetting();
|
||||||
getShowSettingButton,
|
|
||||||
getSettingButtonPosition,
|
|
||||||
} = useRootSetting();
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
getHeaderTheme,
|
getHeaderTheme,
|
||||||
getUseLockPage,
|
|
||||||
getShowFullScreen,
|
getShowFullScreen,
|
||||||
getShowNotice,
|
getShowNotice,
|
||||||
getShowContent,
|
getShowContent,
|
||||||
@ -189,7 +185,6 @@
|
|||||||
getShowLocalePicker,
|
getShowLocalePicker,
|
||||||
getShowFullScreen,
|
getShowFullScreen,
|
||||||
getShowNotice,
|
getShowNotice,
|
||||||
getUseLockPage,
|
|
||||||
getUseErrorHandle,
|
getUseErrorHandle,
|
||||||
getLogoWidth,
|
getLogoWidth,
|
||||||
getIsMixSidebar,
|
getIsMixSidebar,
|
||||||
|
Loading…
Reference in New Issue
Block a user