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;

View File

@ -76,6 +76,9 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
chunkSizeWarningLimit: 2000,
},
define: {
// setting vue-i18-next
// Suppress warning
__INTLIFY_PROD_DEVTOOLS__: false,
__APP_INFO__: JSON.stringify(__APP_INFO__),
},
css: {