|
@@ -1,13 +1,41 @@
|
|
|
<template>
|
|
|
<div id="app">
|
|
|
- <Router-view/>
|
|
|
+ <Router-view />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
+
|
|
|
+<script>
|
|
|
+
|
|
|
+export default {
|
|
|
+
|
|
|
+ created() {
|
|
|
+ // 移动端和pc端的切换
|
|
|
+ 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
|
|
|
+ )
|
|
|
+ ) {
|
|
|
+ // 移动端
|
|
|
+ if (window.location.href.includes("shouBo/main.html#/")) {
|
|
|
+ window.location.href = window.location.href.replace("shouBo/main.html#/", "shouBoM/index.html#/");
|
|
|
+ setTimeout(() => {
|
|
|
+ location.reload(true);
|
|
|
+ }, 200);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+
|
|
|
<style lang='less' scoped>
|
|
|
-#app{
|
|
|
+#app {
|
|
|
width: 100%;
|
|
|
// min-width: 1280px;
|
|
|
}
|
|
|
</style>
|
|
|
|
|
|
+
|
|
|
+
|