Skip to content

Commit

Permalink
fix(layout): fix useLockPage not work, fix #611
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed May 18, 2021
1 parent d7d6039 commit 3bb6d11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
/>
<MenuDivider v-if="getShowDoc" />
<MenuItem
v-if="getUseLockPage"
key="lock"
:text="t('layout.header.tooltipLock')"
icon="ion:lock-closed-outline"
Expand Down Expand Up @@ -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(() => {
Expand Down Expand Up @@ -116,6 +117,7 @@
getShowDoc,
headerImg,
register,
getUseLockPage,
};
},
});
Expand Down
9 changes: 2 additions & 7 deletions src/layouts/default/header/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,11 @@
getMenuWidth,
getIsMixSidebar,
} = useMenuSetting();
const {
getUseErrorHandle,
getShowSettingButton,
getSettingButtonPosition,
} = useRootSetting();
const { getUseErrorHandle, getShowSettingButton, getSettingButtonPosition } =
useRootSetting();
const {
getHeaderTheme,
getUseLockPage,
getShowFullScreen,
getShowNotice,
getShowContent,
Expand Down Expand Up @@ -189,7 +185,6 @@
getShowLocalePicker,
getShowFullScreen,
getShowNotice,
getUseLockPage,
getUseErrorHandle,
getLogoWidth,
getIsMixSidebar,
Expand Down

0 comments on commit 3bb6d11

Please sign in to comment.