refactor(webview-preview): 移除硬编码的默认页面标题
将导航栏和页面默认标题置为空,以便后续使用加载网页的实际标题
Showing
2 changed files
with
2 additions
and
2 deletions
| ... | @@ -16,7 +16,7 @@ import Taro, { useLoad } from '@tarojs/taro' | ... | @@ -16,7 +16,7 @@ import Taro, { useLoad } from '@tarojs/taro' |
| 16 | import { parseWebviewRouteParam, parseWebviewRouteUrl } from '@/utils/webview' | 16 | import { parseWebviewRouteParam, parseWebviewRouteUrl } from '@/utils/webview' |
| 17 | 17 | ||
| 18 | const preview_url = ref('') | 18 | const preview_url = ref('') |
| 19 | -const default_page_title = 'WebView 预览' | 19 | +const default_page_title = '' |
| 20 | 20 | ||
| 21 | useLoad((options) => { | 21 | useLoad((options) => { |
| 22 | preview_url.value = parseWebviewRouteUrl(options?.url) | 22 | preview_url.value = parseWebviewRouteUrl(options?.url) | ... | ... |
-
Please register or login to post a comment