소스 검색

页面缩小数据清空

jbb 2 년 전
부모
커밋
a501cb16e7
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/App.vue

+ 4 - 2
src/App.vue

@@ -20,12 +20,14 @@
       enquireScreen(deviceType => {
         // tablet
         if (deviceType === 0) {
-          that.$store.commit('TOGGLE_DEVICE', 'mobile')
+          // that.$store.commit('TOGGLE_DEVICE', 'mobile')
+          that.$store.commit('TOGGLE_DEVICE', 'desktop')
           that.$store.dispatch('setSidebar', false)
         }
         // mobile
         else if (deviceType === 1) {
-          that.$store.commit('TOGGLE_DEVICE', 'mobile')
+          // that.$store.commit('TOGGLE_DEVICE', 'mobile')
+          that.$store.commit('TOGGLE_DEVICE', 'desktop')
           that.$store.dispatch('setSidebar', false)
         }
         else {