新增跳转时打开新窗口功能

This commit is contained in:
2026-07-24 18:19:33 +08:00
parent 0e88255852
commit f3bdb07e3d
22 changed files with 132 additions and 46 deletions
+3 -2
View File
@@ -41,6 +41,7 @@
color: #111827;
}
</style>
<script src="../config.js"></script>
</head>
<body>
<div class="box">
@@ -59,9 +60,9 @@
if (!inApp && location.search.indexOf(prefix) === 0) {
const target = location.search.slice(prefix.length);
if (target && target.charAt(0) === "/" && target.indexOf("//") !== 0) {
location.replace(target);
NavigationUtil.open(target);
}
}
</script>
</body>
</html>
</html>