Explorar el Código

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

LiuHao hace 1 año
padre
commit
3dba22c47c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/layout/index.vue

+ 1 - 1
src/layout/index.vue

@@ -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) {