|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div id="app">
|
|
|
- <Router-view/>
|
|
|
+ <Router-view />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -18,21 +18,24 @@ export default {
|
|
|
) {
|
|
|
// 移动端
|
|
|
} else {
|
|
|
- // PC端
|
|
|
- if (window.location.href.includes("mobile/index.html#/")) {
|
|
|
- window.location.href = window.location.href.replace("mobile/index.html#/", "index.html#/");
|
|
|
+ console.log('----------',window.location.href);
|
|
|
+ if (window.location.href.includes('en.capitalmuseum.org.cn')) {
|
|
|
+ // PC端
|
|
|
+ window.location.href = window.location.origin
|
|
|
setTimeout(() => {
|
|
|
location.reload(true);
|
|
|
- }, 1000);
|
|
|
+ }, 200);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|
|
|
-#app{
|
|
|
+#app {
|
|
|
max-width: 500px;
|
|
|
margin: 0 auto;
|
|
|
}
|