From 86aab033b5129b00651b716ee70ce871cf670008 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 31 三月 2020 20:12:30 +0800
Subject: [PATCH] 2020-03-31

---
 src/index.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/index.js b/src/index.js
index 24e776d..5dfc482 100644
--- a/src/index.js
+++ b/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 => {

--
Gitblit v1.8.0