Vanessa 2025-07-18 10:40:56 +08:00
parent 0019a6d8d4
commit b1a04d67d9

View file

@ -13,7 +13,7 @@ export const encodeBase64 = (text: string): string => {
for (let i = 0; i < bytes.length; i += chunkSize) {
const chunk = bytes.subarray(i, Math.min(i + chunkSize, bytes.length));
binary += String.fromCharCode.apply(null, chunk);
binary += String.fromCharCode(...chunk);
}
return btoa(binary);