Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3fae472d
authored
Jun 20, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 修改 WebView 的 User Agent 为 PC 端
1 parent
7185ba53
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
components/HomeFrame/index.vue
components/HomeFrame/index.vue
View file @
3fae472
...
...
@@ -286,6 +286,8 @@ export default {
// 提取公共的webview设置逻辑
const
setWebviewStyle
=
()
=>
{
//修改UA为PC端
plus
.
navigator
.
setUserAgent
(
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0'
)
setTimeout
(()
=>
{
const
currentWebview
=
this
.
$parent
.
$scope
.
$getAppWebview
();
const
wv
=
currentWebview
.
children
()[
1
];
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment