src/index.js
@@ -10,7 +10,7 @@ import '@/assets/css/viewstyle.scss' if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) { window.location.replace(window.location.href.split('build/')[0] + 'index.html') window.location.replace(window.location.href.split(/(index.html)+/ig)[0] + 'mob/index.html') } const render = Component => {