@@ -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)