소스 검색

fix(frontend): growth tab 空态不刷新 — hasFamily 加入 children/records 判断

E2E Test Bot 2 달 전
부모
커밋
ab7e997d8a
1개의 변경된 파일과 2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      cfc-frontend/pages/growth-main/index.vue

+ 2 - 0
cfc-frontend/pages/growth-main/index.vue

@@ -201,6 +201,8 @@ export default {
   computed: {
     hasFamily: function() {
       if (this.memberId) return true
+      if (this.children && this.children.length > 0) return true
+      if (this.records && this.records.length > 0) return true
       return this.$store.getters.hasFamily
     },
     filteredRecords: function() {