Skip to content

Commit

Permalink
fix(layout): fix class loss
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed May 26, 2021
1 parent 2066f66 commit d018363
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/default/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit d018363

Please sign in to comment.