From dfbcd0c9a54d9bf92f077b230b061a568c048b75 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Fri, 29 May 2026 08:56:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(formdata):=20=E9=80=82=E9=85=8D=E5=A4=9A?= =?UTF-8?q?=E7=AB=AF=E9=A1=B5=E9=9D=A2=E6=A0=87=E9=A2=98=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整导航栏标题设置代码,兼容WebView内核场景,同时保留H5和小程序的标题设置能力 --- pages_tool/form/formdata.vue | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pages_tool/form/formdata.vue b/pages_tool/form/formdata.vue index a0c26cf..a3c4aff 100644 --- a/pages_tool/form/formdata.vue +++ b/pages_tool/form/formdata.vue @@ -109,13 +109,9 @@ export default { if (res.code == 0 && res.data) { this.detail = res.data console.log(`form data =>`, this.detail) - - // 非H5的情况下,设置标题 - if (!this.isFromMpWebView) { - uni.setNavigationBarTitle({ - title: res.data.form_name - }) - } + uni.setNavigationBarTitle({ + title: res.data.form_name + }) } this.$refs.loadingCover && this.$refs.loadingCover.hide() },