diff --git a/src/views/screening/components/ConfigForms.vue b/src/views/screening/components/ConfigForms.vue index 5f924b8806e948b8e9fb8789717fd14372f12f13..b1dc62ffe195ac30bc26f1252db8bfdd38837c44 100644 --- a/src/views/screening/components/ConfigForms.vue +++ b/src/views/screening/components/ConfigForms.vue @@ -182,7 +182,7 @@ export default { inject: { tabFollowId: { type: String, - default: "", + default: () => {}, }, }, data() { @@ -197,7 +197,9 @@ export default { }, computed: { getTabFollowId() { - return this.tabFollowId() + if (this.tabFollowId) { + return this.tabFollowId() + } }, survivalFlag() { if (this.activeName == "index0" && this.formClass) { @@ -397,7 +399,7 @@ export default { path: "/followupquery", query: { patientId: this.patientId, - followId: this.followId || this.tabFollowId, + followId: this.followId || this.getTabFollowId, followBatch: 1, }, }) diff --git a/src/views/screening/components/FormTab.vue b/src/views/screening/components/FormTab.vue index a73354c6444c4083360d037beaea260dc3cd6233..7356adc88370b8e8e0d635af3e79f09c4f02614d 100644 --- a/src/views/screening/components/FormTab.vue +++ b/src/views/screening/components/FormTab.vue @@ -163,7 +163,9 @@ export default { .length }, getTabFollowId() { - return this.tabFollowId() + if (this.tabFollowId) { + return this.tabFollowId() + } }, // sideWidth() { // return this.asideShow ? "200px" : "0px"