新增跳转时打开新窗口功能
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user