Преглед изворни кода

没有权限用户进入系统,列表数据一直加载请求bug

zhujindu пре 10 месеци
родитељ
комит
37dca91880
1 измењених фајлова са 20 додато и 16 уклоњено
  1. 20 16
      src/views/deviceOutside/index.vue

+ 20 - 16
src/views/deviceOutside/index.vue

@@ -2108,24 +2108,28 @@ export default {
     // 滚动条与底部距离小于 offset 时触发 初始化会触发
     onLoad() {
       // 授权
-      getTicketFun().then(() => {
-        var postType = localStorage.getItem('postType');
-        if (postType == 'GZ') {
-          this.typeShow = false;
-        } else {
-          this.typeShow = true;
-        }
-        if (this.lon == '' && this.tabVal != 1) {
-          this.positionFn(1);
-        } else {
-          if (this.tabVal == 1) {
-            this.positionFn();
-            // this.getUserOutPlaListFun();
+      getTicketFun()
+        .then(() => {
+          var postType = localStorage.getItem('postType');
+          if (postType == 'GZ') {
+            this.typeShow = false;
           } else {
-            this.getUserOrgStoreList();
+            this.typeShow = true;
           }
-        }
-      });
+          if (this.lon == '' && this.tabVal != 1) {
+            this.positionFn(1);
+          } else {
+            if (this.tabVal == 1) {
+              this.positionFn();
+              // this.getUserOutPlaListFun();
+            } else {
+              this.getUserOrgStoreList();
+            }
+          }
+        })
+        .catch(() => {
+          this.finished = true;
+        });
     },
     // 跳转好帮手门店详情
     goOtherSystem(item) {