Commit 04738305 by 施宇

111

parent 0d2c973f
...@@ -142,31 +142,20 @@ export default { ...@@ -142,31 +142,20 @@ export default {
} }
} }
}, },
created() { beforeCreate() {
if (!/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { if (!/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
let url = ""; let url = "";
switch (window.location.hostname) { switch (window.location.hostname) {
case "m.ichunt.com":
url = "https://www.ichunt.com";
break;
case "szm.ichunt.com":
url = "https://sz.ichunt.com";
break;
case "tm.ichunt.com":
url = "https://t.ichunt.com";
break;
case "m.liexin.com": case "m.liexin.com":
url = "http://www.liexin.com"; window.location.href = "http://www.liexin.com/v3/sample";
break; break;
default: default:
url = "https://www.ichunt.com"; window.location.href = window.location.origin + "/v3/sample";
break; break;
} }
console.log(url)
console.log(url+'/v3/sample')
// window.location.href = url+'/v3/sample'
} }
},
created() {
this.$store.dispatch({ this.$store.dispatch({
type: "getClasslist" type: "getClasslist"
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment