Browse Source

fix: layout of mobile

liangliangyin 4 years ago
parent
commit
808487cfec
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/layouts/BasicLayout.vue

+ 2 - 0
src/layouts/BasicLayout.vue

@@ -107,6 +107,8 @@ export default {
       if (!this.isMobile && val['screen-xs']) {
         this.isMobile = true
         this.collapsed = false
+        this.settings.contentWidth = false
+        this.settings.fixSiderbar = false
       }
     },
     handleCollapse (val) {