Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a748e89c
authored
Apr 20, 2026
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'hotfix_SAAS+V5.7.3' into 'master'
上线合并 See merge request
!32
2 parents
b44b43dc
6e81e121
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/utils/util.js
src/utils/util.js
View file @
a748e89
...
@@ -233,7 +233,7 @@ const toUnicode = (chineseStr = '') => {
...
@@ -233,7 +233,7 @@ const toUnicode = (chineseStr = '') => {
const
isMobileDevice
=
()
=>
{
const
isMobileDevice
=
()
=>
{
//判断当前设备是否为移动端
//判断当前设备是否为移动端
const
ua
=
navigator
.
userAgent
.
toLowerCase
()
const
ua
=
navigator
.
userAgent
.
toLowerCase
()
const
t1
=
/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i
.
test
(
ua
)
const
t1
=
/android|webos|iphone|ipad|ipod|blackberry|iemobile|
OpenHarmony|Harmony|
opera mini/i
.
test
(
ua
)
const
t2
=
!
ua
.
match
(
'iphone'
)
&&
navigator
.
maxTouchPoints
>
1
const
t2
=
!
ua
.
match
(
'iphone'
)
&&
navigator
.
maxTouchPoints
>
1
return
t1
||
t2
return
t1
||
t2
}
}
...
...
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