shaogen1995 il y a 1 jour
Parent
commit
6d676314de
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      index.html

+ 4 - 2
index.html

@@ -25,6 +25,9 @@
             number = number.substring(0, number.indexOf("#"));
         }
 
+
+
+
         // 针对某些场景做的重定向处理
         const redirect = [
             {
@@ -35,8 +38,7 @@
         const redirectObj = redirect.find(v => v.code == number)
 
         if (redirectObj) {
-            window.location.href = urlAll.replace('https://www.4dmodel.com/SuperTwo/index.html', v.url)
-            return
+            window.location.href = window.location.href.replace('https://www.4dmodel.com/SuperTwo/index.html', redirectObj.url)
         }