From ae945c24ab32c03aaa5506308559bd532ea51efa Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Thu, 24 Mar 2022 17:31:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=A3=8E=E9=99=A9=E9=A2=84=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppWarningMonitoring/riskList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/AppWarningMonitoring/riskList.vue b/src/apps/AppWarningMonitoring/riskList.vue index c87ba6de..72f1d0a0 100644 --- a/src/apps/AppWarningMonitoring/riskList.vue +++ b/src/apps/AppWarningMonitoring/riskList.vue @@ -58,7 +58,7 @@ export default { } }, onShow() { - document.title = "风险监控" + document.title = "风险预警" } } From 4644f8485b7690e0b44ac850d3d65dbc5d877d32 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 25 Mar 2022 11:29:08 +0800 Subject: [PATCH 2/2] BUG 26943 --- src/apps/AppAskForm/AddForm.vue | 3 +-- src/apps/AppAskForm/AppAskForm.vue | 3 +-- src/apps/AppAskForm/FiledConfig.vue | 3 +++ src/apps/AppAskForm/FormSetting.vue | 4 +++- src/apps/AppAskForm/PreviewForm.vue | 3 +++ src/apps/AppAskForm/Result.vue | 1 + 6 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/apps/AppAskForm/AddForm.vue b/src/apps/AppAskForm/AddForm.vue index ded0b140..cfc86b8c 100644 --- a/src/apps/AppAskForm/AddForm.vue +++ b/src/apps/AppAskForm/AddForm.vue @@ -166,6 +166,7 @@ export default { }, created() { let {type, isQuote, id} = this.$route.query + document.title = !id ? '新建表单' : '编辑表单' this.type = type this.isQuote = !!isQuote if (id) { @@ -182,7 +183,6 @@ export default { } this.formConfig = res }) - uni.$on('filedConfig', res => { console.log(res) if (res.index < 0) { @@ -191,7 +191,6 @@ export default { this.targetList.splice(res.index, 1, res.config) } }) - document.title = !id ? '新建表单' : '编辑表单' }, methods: { toSetting() { diff --git a/src/apps/AppAskForm/AppAskForm.vue b/src/apps/AppAskForm/AppAskForm.vue index 4c585653..b2a0387e 100644 --- a/src/apps/AppAskForm/AppAskForm.vue +++ b/src/apps/AppAskForm/AppAskForm.vue @@ -36,8 +36,7 @@ export default { } }, onShow() { - // document.title = "问卷表单" - uni.setNavigationBarTitle({title:"问卷表单"}) + document.title = "问卷表单" this.$refs?.TabPage?.show() this.$nextTick(() => { this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact', 'shareAppMessage', 'shareWechatMessage']).then(() => { diff --git a/src/apps/AppAskForm/FiledConfig.vue b/src/apps/AppAskForm/FiledConfig.vue index 69a31bed..8b3698cc 100644 --- a/src/apps/AppAskForm/FiledConfig.vue +++ b/src/apps/AppAskForm/FiledConfig.vue @@ -282,6 +282,9 @@ export default { checked: false }) }, + }, + onShow(){ + document.title = '题目设置' } } diff --git a/src/apps/AppAskForm/FormSetting.vue b/src/apps/AppAskForm/FormSetting.vue index 9367e316..c33237ac 100644 --- a/src/apps/AppAskForm/FormSetting.vue +++ b/src/apps/AppAskForm/FormSetting.vue @@ -108,11 +108,13 @@ export default { } }, created() { - document.title = '表单设置' if (this.id) { this.getInfo(this.id) } else this.getFormSetting() }, + onShow() { + document.title = '表单设置' + }, methods: { getFormSetting() { let params = localStorage.getItem("toFormSetting"), res = {} diff --git a/src/apps/AppAskForm/PreviewForm.vue b/src/apps/AppAskForm/PreviewForm.vue index 9b9c3265..86d72e99 100644 --- a/src/apps/AppAskForm/PreviewForm.vue +++ b/src/apps/AppAskForm/PreviewForm.vue @@ -126,6 +126,9 @@ export default { uni.hideLoading() }) } + }, + onShow(){ + document.title = '预览表单' } } diff --git a/src/apps/AppAskForm/Result.vue b/src/apps/AppAskForm/Result.vue index 4da4bc8f..6228bb0f 100644 --- a/src/apps/AppAskForm/Result.vue +++ b/src/apps/AppAskForm/Result.vue @@ -80,6 +80,7 @@ export default { } }, onShow() { + document.title = '问卷表单' wx.hideOptionMenu(); } }