diff --git a/Yi.RuoYi.Vue3/src/layout/index.vue b/Yi.RuoYi.Vue3/src/layout/index.vue index 3ddb1657..07026810 100644 --- a/Yi.RuoYi.Vue3/src/layout/index.vue +++ b/Yi.RuoYi.Vue3/src/layout/index.vue @@ -41,12 +41,12 @@ const { width, height } = useWindowSize(); const WIDTH = 992; // refer to Bootstrap's responsive design watchEffect(() => { - if (device.value === 'mobile' && sidebar.value.opened) { - useAppStore().closeSideBar({ withoutAnimation: false }) - } + //if (device.value === 'mobile' && sidebar.value.opened) { + // useAppStore().closeSideBar({ withoutAnimation: false }) + // } if (width.value - 1 < WIDTH) { useAppStore().toggleDevice('mobile') - useAppStore().closeSideBar({ withoutAnimation: true }) + // useAppStore().closeSideBar({ withoutAnimation: true }) } else { useAppStore().toggleDevice('desktop') }