// 生成唯一ID export function generateId(): string { return crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random()}`; }