mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-23 05:40:20 +08:00
'admin-21.09.25:修改浏览器窗口大小改变时菜单水平折叠问题,感谢群友@三木'
This commit is contained in:
parent
fe70746902
commit
99431138c5
@ -74,7 +74,8 @@ export default {
|
||||
const closeLayoutAsideMobileMode = () => {
|
||||
const el = document.querySelector('.layout-aside-mobile-mode');
|
||||
el && el.parentNode?.removeChild(el);
|
||||
store.state.themeConfig.themeConfig.isCollapse = false;
|
||||
const clientWidth = document.body.clientWidth;
|
||||
if (clientWidth < 1000) store.state.themeConfig.themeConfig.isCollapse = false;
|
||||
document.body.setAttribute('class', '');
|
||||
};
|
||||
// 设置显示/隐藏 logo
|
||||
|
Loading…
Reference in New Issue
Block a user