feat: PubMed搜索合规审计 Phase 5-7 全部修复
P1-2: [SB][STAT][UID][DEP][MESH]字段支持 P1-4: [MH:noexp]解析+抑制树展开 P3: 前端date_to/P3-1、CJK高亮/P3-3、extractPlainText/P3-4、precision_mode移除/P3-6、loadMore sort/P3-5 P4-1: 词数上限50→100 P4-2: retracted参数清理
This commit is contained in:
@@ -277,7 +277,7 @@ const { page, total, goToPage } = usePagination({
|
||||
query: query.value, page: p, page_size: pageSize.value, sort: sort.value,
|
||||
}
|
||||
if (field.value !== 'all') body.field = field.value
|
||||
if (precisionMode.value !== 'majr') body.precision_mode = precisionMode.value
|
||||
// P3-6: precision_mode 不再发送(后端已忽略)
|
||||
// ── Keyset 游标分页(sort=date 时跳过 COUNT,纯翻页模式) ──
|
||||
const useKeyset = sort.value === 'date'
|
||||
if (useKeyset) {
|
||||
@@ -371,10 +371,11 @@ function restoreFromQuery() {
|
||||
datePreset.value = String(route.query.date_preset)
|
||||
} else if (route.query.date_from) {
|
||||
datePreset.value = null
|
||||
// 尝试解析 date_from/date_to 到 yearFromStr/yearToStr
|
||||
const df = String(route.query.date_from)
|
||||
if (df.length >= 4) yearFromStr.value = df.slice(0, 4)
|
||||
} else if (route.query.date_to) {
|
||||
}
|
||||
if (route.query.date_to) {
|
||||
datePreset.value = null
|
||||
const dt = String(route.query.date_to)
|
||||
if (dt.length >= 4) yearToStr.value = dt.slice(0, 4)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user