fix(layout): fix class loss

This commit is contained in:
vben
2021-05-26 22:03:38 +08:00
parent 2066f66971
commit d018363ddc
2 changed files with 5 additions and 2 deletions

View File

@@ -45,14 +45,14 @@
const { prefixCls } = useDesign('default-layout');
const { getIsMobile } = useAppInject();
const { getShowFullHeaderRef } = useHeaderSetting();
const { getShowSidebar, getIsMixSidebar, getIsSidebarType } = useMenuSetting();
const { getShowSidebar, getIsMixSidebar, getShowMenu } = useMenuSetting();
// Create a lock screen monitor
const lockEvents = useLockPage();
const layoutClass = computed(() => {
let cls: string[] = ['ant-layout'];
if (unref(getIsMixSidebar) || unref(getIsSidebarType)) {
if (unref(getIsMixSidebar) || unref(getShowMenu)) {
cls.push('ant-layout-has-sider');
}
return cls;