Browse Source

计划外列表页面刷新优化

zhujindu 10 months ago
parent
commit
9e7c6ff517
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/deviceOutside/index.vue

+ 2 - 1
src/views/deviceOutside/index.vue

@@ -795,6 +795,7 @@ export default {
     store.dispatch('setDeviceOutsidePage', false);
   },
   mounted() {
+    // this.initData();
     localStorage.setItem('tabVal', '1');
     // 上拉边界下拉出现白色空白
     let node = document.getElementsByClassName('deviceOutside')[0];
@@ -842,7 +843,7 @@ export default {
         this.storeCategoryList = this.result.join(',');
       }
       // 当前tabs,0:销售部;1:我的
-      this.tabVal = localStorage.getItem('tabVal');
+      this.tabVal = localStorage.getItem('tabVal') == '0' ? '0' : '1';
       this.query = this.$route.query; // 路由参数
       localStorage.removeItem('visitId');
       if (localStorage.getItem('postType') == 'GZ') {