接入 ESLint 与 Prettier 并加入 CI 静态门禁
前端验证 / verify (push) Failing after 15m2s

This commit is contained in:
cieanyau committed 2026-11-07 01:24:36 +08:00
1 parent 339df89fcf
commit 651c36367f
33 files changed
+1420 -40

No files matched your search

+3 -1
View File
@@ -13,6 +13,7 @@ function t(t) {
return [];
let n = typeof t.img == `string` ? t.img : ``,
r =
// eslint-disable-next-line no-control-regex -- 安全边界:拒绝登录图标路径中的控制字符。
/^\/(?!\/)/.test(n) && !/[\\\u0000-\u0020]/.test(n)
? n
: backend_menu_o(n);
@@ -29,7 +30,8 @@ function t(t) {
}
function n(t, n) {
return typeof t == `string`
? /^\/(?!\/)/.test(t) && !/[\\\u0000-\u0020]/.test(t)
? // eslint-disable-next-line no-control-regex -- 安全边界:拒绝登录跳转地址中的控制字符。
/^\/(?!\/)/.test(t) && !/[\\\u0000-\u0020]/.test(t)
? new URL(t, n).href
: backend_menu_o(t)
: ``;