Parcourir la source

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

E2E Test Bot il y a 2 mois
Parent
commit
ab7e997d8a
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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() {