Skip to content

Commit debd824

Browse files
committed
小屏幕默认收起侧边栏
1 parent 25322e0 commit debd824

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/common/Header.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@
100100
}
101101
this.fullscreen = !this.fullscreen;
102102
}
103+
},
104+
mounted(){
105+
if(document.body.clientWidth < 1500){
106+
this.collapseChage();
107+
}
103108
}
104109
}
105110
</script>

0 commit comments

Comments
 (0)