|
@@ -10,6 +10,7 @@
|
|
export default {
|
|
export default {
|
|
|
|
|
|
created() {
|
|
created() {
|
|
|
|
+
|
|
// 移动端和pc端的切换
|
|
// 移动端和pc端的切换
|
|
if (
|
|
if (
|
|
window.navigator.userAgent.match(
|
|
window.navigator.userAgent.match(
|
|
@@ -17,8 +18,8 @@ export default {
|
|
)
|
|
)
|
|
) {
|
|
) {
|
|
// 移动端
|
|
// 移动端
|
|
- if (window.location.href.includes("https://cssbbwg.4dage.com")) {
|
|
|
|
- window.location.href='https://cssbbwg.4dage.com/mobile/index.html#/Layout/Home'
|
|
|
|
|
|
+ if (window.location.href.includes('en.capitalmuseum.org.cn')) {
|
|
|
|
+ window.location.href = window.location.origin + '/mobile/index.html#/Layout/Home'
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
location.reload(true);
|
|
location.reload(true);
|
|
}, 200);
|
|
}, 200);
|