|
@@ -45,9 +45,13 @@ if (uaInfo.browser && uaInfo.browser.name === 'WeChat') {
|
|
|
if (uaInfo.browser && uaInfo.browser.name === 'Safari') {
|
|
|
app.provide('$isSafari', true)
|
|
|
}
|
|
|
+console.log(window.innerWidth)
|
|
|
+console.log(window.innerHeight)
|
|
|
+
|
|
|
if (
|
|
|
uaInfo.device.type === 'mobile' ||
|
|
|
- /Mobi|Android|iPhone|SymbianOS|Windows Phone|iPad|iPod/i.test(navigator.userAgent)
|
|
|
+ (uaInfo.browser.name === 'Edge' && uaInfo.os.name === 'Linux' && window.innerWidth < 1024 ) || // 尽量判断出移动端edge
|
|
|
+ /Mobi|Android|iPhone|SymbianOS|Windows Phone|iPad|iPod|MIUI/i.test(navigator.userAgent)
|
|
|
) {
|
|
|
// app.provide('$isMobile', true)
|
|
|
window.location.assign(process.env.VUE_APP_MOBILE_URL)
|