修复:旧浏览器样式与安全操作编号兼容,复用已完成的 Windows 数据库恢复

This commit is contained in:
2026-11-05 14:08:09 +08:00
parent c2410c4ce1
commit b208f93945
18 changed files with 477 additions and 32 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
import { createRequestUuid } from './requestUuid.ts';
/** Internal catalog identity never needs user input. Existing identities survive renames. */
export function newMasterDataCode(existing: Iterable<string>): string {
const used = existing instanceof Set ? existing : new Set(existing);
let code: string;
do { code = `REF-${crypto.randomUUID()}`; } while (used.has(code));
do { code = `REF-${createRequestUuid()}`; } while (used.has(code));
return code;
}