|
@@ -45,8 +45,12 @@ if (uaInfo.browser && uaInfo.browser.name === 'WeChat') {
|
|
if (uaInfo.browser && uaInfo.browser.name === 'Safari') {
|
|
if (uaInfo.browser && uaInfo.browser.name === 'Safari') {
|
|
app.provide('$isSafari', true)
|
|
app.provide('$isSafari', true)
|
|
}
|
|
}
|
|
-if (uaInfo.device.type === 'mobile') {
|
|
|
|
- app.provide('$isMobile', true)
|
|
|
|
|
|
+if (
|
|
|
|
+ uaInfo.device.type === 'mobile' ||
|
|
|
|
+ /Mobi|Android|iPhone|SymbianOS|Windows Phone|iPad|iPod/i.test(navigator.userAgent)
|
|
|
|
+) {
|
|
|
|
+ // app.provide('$isMobile', true)
|
|
|
|
+ window.location.assign(process.env.VUE_APP_MOBILE_URL)
|
|
}
|
|
}
|
|
|
|
|
|
// 处理resize事件
|
|
// 处理resize事件
|