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
This commit is contained in:
2026-07-15 11:55:52 +08:00
parent 1814fffc12
commit b10bf472e3
2 changed files with 18 additions and 8 deletions

View File

@@ -1486,6 +1486,7 @@ export default {
},
title(str) {
console.log(`lang.js setNavigationBarTitle ---------------->`, str);
if (str) {
uni.setNavigationBarTitle({
title: str,