shaogen1995 1 天之前
父節點
當前提交
6d676314de
共有 1 個文件被更改,包括 4 次插入2 次删除
  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)
         }