|
@@ -54,8 +54,15 @@ if (uaInfo.browser && uaInfo.browser.name === 'Safari') {
|
|
|
if (uaInfo.device.type === 'mobile') {
|
|
|
app.provide('$isMobile', true)
|
|
|
} else if (process.env.NODE_ENV === 'production') {
|
|
|
- window.location.href = '/mobile.html'
|
|
|
+ // window.location.href = './mobile.html'
|
|
|
+ const appDom = document.getElementById('app')
|
|
|
+ appDom.style.maxWidth = '100%'
|
|
|
+ window.location.href = './index.html#/pc'
|
|
|
+
|
|
|
}
|
|
|
+// } else {
|
|
|
+// window.location.href = './mobile.html'
|
|
|
+// }
|
|
|
|
|
|
// 处理resize事件
|
|
|
let windowWidthLast = window.innerWidth
|