Преглед изворни кода

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() {