!2 fix: 正则表达式 代码中没有使用捕获组问题

Merge pull request !2 from simple/div
This commit is contained in:
simple
2024-08-12 20:36:20 +00:00
committed by 玲娜贝er
parent 85ab87fae1
commit 16a21e084e
3 changed files with 2 additions and 10 deletions

View File

@@ -27,7 +27,7 @@ async function generateAccessible(
/**
* 外链不应该被添加到路由 由menu处理
*/
if (/^http(s)?:\/\//.test(route.path)) {
if (/^https?:\/\//.test(route.path)) {
return;
}
router.addRoute(route);