Explorar el Código

Merge branch 'feature-2.0' into 'Test'

fix

See merge request crowd-2019/crowd-test-service-front!139
wangjin hace 5 años
padre
commit
585af9398a
Se han modificado 1 ficheros con 2 adiciones y 6 borrados
  1. 2 6
      src/components/Mine.vue

+ 2 - 6
src/components/Mine.vue

@@ -184,8 +184,8 @@
     },
     mounted() {
       this.$nextTick(() => {
+        console.log('nexttick')
         this.init();
-        this.getProjectCount();
         this.checkCreateProjectAuth();
         this.checkAcceptTaskAuth()
       })
@@ -207,6 +207,7 @@
         this.showLoading()
         Http.get(Apis.PAGE.MY_CROWD_TEST_PAGE.replace('{userId}', this.user.userVO.id)).then((res) => {
           this.hideLoading()
+          this.statisticData = res;
           this.processProjectNoticeCount = res.processProjectNoticeCount == null ? 0 : res.processProjectNoticeCount
           this.myProjectNoticeCount = res.myProjectNoticeCount == null ? 0 : res.myProjectNoticeCount
           this.acceptableProjectNoticeCount = res.acceptableProjectNoticeCount == null ? 0 : res.acceptableProjectNoticeCount
@@ -330,11 +331,6 @@
         }
         console.log(event)
       },
-      getProjectCount() {
-        Http.get(`/api/common/mycrowd/${this.user.userVO.id}`).then((res) => {
-          this.statisticData = res;
-        })
-      },
       //检查是否有发包权限
       checkCreateProjectAuth() {
         if (this.isLogin) {