From b6f32a0d105d461a6c935dba947f4ab1553329dd Mon Sep 17 00:00:00 2001 From: lrw <319150264@qq.com> Date: Fri, 5 May 2023 16:22:08 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/screening/components/ConfigForms.vue | 8 +++++--- src/views/screening/components/FormTab.vue | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/screening/components/ConfigForms.vue b/src/views/screening/components/ConfigForms.vue index 5f924b8..b1dc62f 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 a73354c..7356adc 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" -- 2.22.0