/** 解码到未编码的状态为止 */ export function decode(value: string): string { try { const newValue = decodeURIComponent(value); if (newValue !== value) { return decode(newValue); } return value; } catch (err) { return value; } }