From 33685758f3ebf21025863a7428cf09ccba1de89c Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 24 Dec 2021 21:28:37 +0800 Subject: [PATCH] BUG 26030 --- src/apps/AppAskForm/AppAskForm.vue | 18 ++++++++++-------- src/apps/AppAskForm/components/Tabbar.vue | 7 ++----- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/apps/AppAskForm/AppAskForm.vue b/src/apps/AppAskForm/AppAskForm.vue index f30b3a92..f835c37a 100644 --- a/src/apps/AppAskForm/AppAskForm.vue +++ b/src/apps/AppAskForm/AppAskForm.vue @@ -1,10 +1,6 @@ @@ -21,7 +17,8 @@ export default { data() { return { component: 'Tabbar', - params: {} + params: {}, + refresh: true } }, @@ -40,9 +37,14 @@ export default { }, onShow() { document.title = "问卷表单" - this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact', 'shareAppMessage', 'shareWechatMessage']).then(() => { - this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']) + this.refresh = false + this.$nextTick(() => { + this.refresh = true + this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact', 'shareAppMessage', 'shareWechatMessage']).then(() => { + this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']) + }) }) + } } diff --git a/src/apps/AppAskForm/components/Tabbar.vue b/src/apps/AppAskForm/components/Tabbar.vue index 34ab7f52..5e6a1f0f 100644 --- a/src/apps/AppAskForm/components/Tabbar.vue +++ b/src/apps/AppAskForm/components/Tabbar.vue @@ -1,8 +1,8 @@