update
This commit is contained in:
parent
a5473c01e7
commit
dad4308c0f
@ -24,7 +24,7 @@
|
||||
* @version:
|
||||
* @Date: 2021-04-20 11:06:21
|
||||
* @LastEditors: huzhushan@126.com
|
||||
* @LastEditTime: 2021-04-21 12:46:07
|
||||
* @LastEditTime: 2021-04-29 11:31:50
|
||||
* @Author: huzhushan@126.com
|
||||
* @HomePage: https://huzhushan.gitee.io/vue3-element-admin
|
||||
* @Github: https://github.com/huzhushan/vue3-element-admin
|
||||
@ -56,10 +56,7 @@ export const useResizeHandler = () => {
|
||||
}
|
||||
|
||||
onBeforeMount(() => {
|
||||
if (isMobile()) {
|
||||
store.commit('app/setDevice', 'mobile')
|
||||
store.commit('app/setCollapse', 1)
|
||||
}
|
||||
resizeHandler()
|
||||
window.addEventListener('resize', resizeHandler)
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user