fix 修复移动端下 无法展开菜单问题
This commit is contained in:
parent
e1289d0abb
commit
3dba22c47c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue