|
|
@@ -39,19 +39,19 @@ export default {
|
|
|
International,
|
|
|
About,
|
|
|
},
|
|
|
- // created(){
|
|
|
- // // 判断浏览器函数
|
|
|
- // function isMobile() {
|
|
|
- // if (window.navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)) {
|
|
|
- // return true; // 移动端
|
|
|
- // } else {
|
|
|
- // return false; // PC端
|
|
|
- // }
|
|
|
- // }
|
|
|
- // if(!isMobile()){
|
|
|
- // window.location.replace('https://zzbbh.4dage.com/web/index.html')
|
|
|
- // }
|
|
|
- // }
|
|
|
+ created(){
|
|
|
+ // 判断浏览器函数
|
|
|
+ function isMobile() {
|
|
|
+ if (window.navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)) {
|
|
|
+ return true; // 移动端
|
|
|
+ } else {
|
|
|
+ return false; // PC端
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(!isMobile()){
|
|
|
+ window.location.replace('https://zzbbh.4dage.com/web/index.html')
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|