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(); } } 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 = "风险预警" } }