Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
jls-weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2026-05-25 10:36:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b56fd7384141147f37271b153d226c377896f2f8
b56fd738
1 parent
7cab06cc
refactor(webview-preview): 移除硬编码的默认页面标题
将导航栏和页面默认标题置为空,以便后续使用加载网页的实际标题
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/pages/webview-preview/index.config.js
src/pages/webview-preview/index.vue
src/pages/webview-preview/index.config.js
View file @
b56fd73
export
default
{
navigationBarTitleText
:
'
WebView 预览
'
,
navigationBarTitleText
:
''
,
}
...
...
src/pages/webview-preview/index.vue
View file @
b56fd73
...
...
@@ -16,7 +16,7 @@ import Taro, { useLoad } from '@tarojs/taro'
import { parseWebviewRouteParam, parseWebviewRouteUrl } from '@/utils/webview'
const preview_url = ref('')
const default_page_title = '
WebView 预览
'
const default_page_title = ''
useLoad((options) => {
preview_url.value = parseWebviewRouteUrl(options?.url)
...
...
Please
register
or
login
to post a comment