From b10bf472e331b9ab0552f2418ae081b07d5a4c19 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Wed, 15 Jul 2026 11:55:52 +0800 Subject: [PATCH] feat(webview): add webview title auto update and debug logs 1. add @titleUpdate event listener for web-view component 2. decode uri component for title and enableSetTitle params 3. refactor updateNavbarTitle to accept dynamic new title 4. add debug console logs for tracking title update flow 5. add success/fail callbacks for navigation bar title setting --- common/js/lang.js | 1 + pages_tool/webview/webview.vue | 25 +++++++++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/common/js/lang.js b/common/js/lang.js index 49e174f..3adaea3 100644 --- a/common/js/lang.js +++ b/common/js/lang.js @@ -1486,6 +1486,7 @@ export default { }, title(str) { + console.log(`lang.js setNavigationBarTitle ---------------->`, str); if (str) { uni.setNavigationBarTitle({ title: str, diff --git a/pages_tool/webview/webview.vue b/pages_tool/webview/webview.vue index 41717d6..bd23d63 100644 --- a/pages_tool/webview/webview.vue +++ b/pages_tool/webview/webview.vue @@ -1,7 +1,7 @@