fix: 第30轮搜索审计修复 — 否定组NULL安全/嵌套括号_has_or/传递子组/DP标记列精度等8项
CI / backend (push) Canceled after 0s
CI / frontend (push) Canceled after 0s

This commit is contained in:
34047007@qq.com
2026-07-29 07:30:36 +08:00
parent 475d6bb80c
commit fc53a5b255
5 changed files with 129 additions and 32 deletions
+1 -1
View File
@@ -372,7 +372,7 @@ const { page, total, goToPage } = usePagination({
searchError.value = e?.response?.status === 401
? '请登录后使用搜索功能'
: e?.response?.status === 400
? '搜索参数有误,请调整后重试'
? e?.response?.data?.detail || '搜索参数有误,请调整后重试'
: e?.response?.status === 429
? '请求过于频繁,请稍后重试'
: '搜索失败,请检查网络或稍后重试'
@@ -87,7 +87,7 @@ const translated = computed(() => {
}
// Date range: YYYY:YYYY[DP] or YYYY/MM/DD:YYYY/MM/DD[DP]
// 对 displayText(已展开 #N)扫描,确保历史引用中的 DP 也能被翻译
const yrRe = /(\d{4}(?:\/\d{2}\/\d{2})?)\s*:\s*(\d{4}(?:\/\d{2}\/\d{2})?)\s*\[DP\]/g
const yrRe = /(\d{4}(?:[-\/]\d{2}[-\/]\d{2})?)\s*:\s*(\d{4}(?:[-\/]\d{2}[-\/]\d{2})?)\s*\[DP\]/g
while ((m = yrRe.exec(displayText)) !== null) {
const key = `dp_range_${m.index}`
if (!seen.has(key)) {