This commit is contained in:
huzhushan 2021-04-29 16:05:56 +08:00
parent a5473c01e7
commit dad4308c0f

View File

@ -24,7 +24,7 @@
* @version: * @version:
* @Date: 2021-04-20 11:06:21 * @Date: 2021-04-20 11:06:21
* @LastEditors: huzhushan@126.com * @LastEditors: huzhushan@126.com
* @LastEditTime: 2021-04-21 12:46:07 * @LastEditTime: 2021-04-29 11:31:50
* @Author: huzhushan@126.com * @Author: huzhushan@126.com
* @HomePage: https://huzhushan.gitee.io/vue3-element-admin * @HomePage: https://huzhushan.gitee.io/vue3-element-admin
* @Github: https://github.com/huzhushan/vue3-element-admin * @Github: https://github.com/huzhushan/vue3-element-admin
@ -56,10 +56,7 @@ export const useResizeHandler = () => {
} }
onBeforeMount(() => { onBeforeMount(() => {
if (isMobile()) { resizeHandler()
store.commit('app/setDevice', 'mobile')
store.commit('app/setCollapse', 1)
}
window.addEventListener('resize', resizeHandler) window.addEventListener('resize', resizeHandler)
}) })