Commit 3fae472d by 李伟康

feat: 修改 WebView 的 User Agent 为 PC 端

1 parent 7185ba53
......@@ -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];
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!