fix 修复移动端下 无法展开菜单问题

This commit is contained in:
LiuHao 2024-03-19 17:41:47 +08:00
parent e1289d0abb
commit 3dba22c47c

View File

@ -46,7 +46,7 @@ const { width } = useWindowSize();
const WIDTH = 992; // refer to Bootstrap's responsive design
watchEffect(() => {
if (device.value === 'mobile' && sidebar.value.opened) {
if (device.value === 'mobile') {
useAppStore().closeSideBar({ withoutAnimation: false });
}
if (width.value - 1 < WIDTH) {