shaogen1995 3 سال پیش
والد
کامیت
5128c76495

BIN
web/src/assets/img/code1185.png


BIN
web/src/assets/img/code1186.png


BIN
web/src/assets/img/code1187.png


BIN
web/src/assets/img/code1188.png


+ 5 - 9
web/src/pages/Home.vue

@@ -183,17 +183,13 @@ export default {
       )
       )
     ) {
     ) {
       // 移动端
       // 移动端
-      if (window.location.href.includes("web")&&!(window.location.href.includes("webM"))) {
+      if (window.location.href.includes("web")) {
         window.location.href = window.location.href.replace("web", "webM");
         window.location.href = window.location.href.replace("web", "webM");
-        location.reload(true);
+        setTimeout(() => {
+          location.reload(true);
+        }, 1000);
       }
       }
-    } else {
-      // PC端
-      if (window.location.href.includes("webM")) {
-        window.location.href = window.location.href.replace("webM", "web");
-        location.reload(true);
-      }
-    }
+    } 
   },
   },
 };
 };
 </script>
 </script>

+ 3 - 8
webM/src/pages/Home.vue

@@ -183,18 +183,13 @@ export default {
       )
       )
     ) {
     ) {
       // 移动端
       // 移动端
-      if (
-        window.location.href.includes("web") &&
-        !window.location.href.includes("webM")
-      ) {
-        window.location.href = window.location.href.replace("web", "webM");
-        location.reload(true);
-      }
     } else {
     } else {
       // PC端
       // PC端
       if (window.location.href.includes("webM")) {
       if (window.location.href.includes("webM")) {
         window.location.href = window.location.href.replace("webM", "web");
         window.location.href = window.location.href.replace("webM", "web");
-        location.reload(true);
+        setTimeout(() => {
+          location.reload(true);
+        }, 1000);
       }
       }
     }
     }
   },
   },