docs: annotate all shared frontend modules in Chinese

This commit is contained in:
cieanyau committed 2026-11-06 00:30:15 +08:00
1 parent 2be21c1c62
commit 408f8e5c98
55 files changed
+349

No files matched your search

+5
View File
@@ -1,3 +1,7 @@
/**
* 拉取完整关联列表:e(page, limit) 返回 {list, count?},t 判断调用上下文是否仍有效。
* 按正整数 id 去重;总数缺失时以不足一页结束,无新增项时拒绝,避免无限分页。
*/
async function e(e, t = () => !0) {
let n = [],
r = new Set();
@@ -19,6 +23,7 @@ async function e(e, t = () => !0) {
if (s === n.length) throw Error(`未能加载完整列表,请刷新重试`);
}
}
/** 按本次请求的每个 id 汇总批量关联结果;缺失/重复结果均不能被判作成功。 */
function t(e, t) {
let n = (
Array.isArray(e) ? e : e && typeof e == `object` && `id` in e ? [e] : []