!20 update src/layout/index.vue.

Merge pull request !20 from 青苗/N/A
This commit is contained in:
sakuya 2022-01-02 11:47:27 +00:00 committed by Gitee
commit 4607fd6573
1 changed files with 1 additions and 6 deletions

View File

@ -254,12 +254,7 @@
this.settingDialog = true;
},
onLayoutResize(){
const clientWidth = document.body.clientWidth;
if(clientWidth < 992){
this.$store.commit("SET_ismobile", true)
}else{
this.$store.commit("SET_ismobile", false)
}
this.$store.commit("SET_ismobile", document.body.clientWidth < 992)
},
//
showThis(){