Browse Source

门店拜访任务列表访问速度优化

zhujindu 6 months ago
parent
commit
176c0ef94d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/deviceWithin/storeVisit.vue

+ 3 - 3
src/views/deviceWithin/storeVisit.vue

@@ -240,6 +240,9 @@ export default {
     next();
   },
   activated() {
+    // 是否请求任务列表接口
+    let getRequestFlage = localStorage.getItem('getRequestFlage');
+    if (getRequestFlage != 'true') return;
     this.urlParameter = this.$route.query;
     this.storeId = this.$route.query.storeId + '';
     this.visitId = this.$route.query.visitId;
@@ -253,9 +256,6 @@ export default {
     this.lon = this.$route.query.lon + '';
     // this.list = [];
     this.uType = localStorage.getItem('uType');
-    // 是否请求任务列表接口
-    let getRequestFlage = localStorage.getItem('getRequestFlage');
-    if (getRequestFlage != 'true') return;
     this.list = [];
     if (this.$route.query.type != 'edit') {
       this.timeShow = true;