소스 검색

fix:只有developer账号可以获取我的页面数据

zhangxin 1 개월 전
부모
커밋
f40833a6a5
1개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. 7 5
      pages/person/cards/index.vue

+ 7 - 5
pages/person/cards/index.vue

@@ -229,11 +229,13 @@ export default {
229 229
         },
230 230
     },
231 231
     mounted() {
232
-        this.getCardData();
233
-        this.getClueList();
234
-        this.$nextTick(() => {
235
-            this.getChartData();
236
-        })
232
+        if (this.$store.state.user.userInfo.userId === '12234') {
233
+            this.getCardData();
234
+            this.getClueList();
235
+            this.$nextTick(() => {
236
+                this.getChartData();
237
+            })
238
+        }
237 239
     },
238 240
 
239 241
 };