mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-08 11:06:37 +08:00
fix bug
This commit is contained in:
parent
ca2eeb8370
commit
45d2ccc119
@ -59,8 +59,9 @@ export const useSyncStore = createPersistStore(
|
|||||||
|
|
||||||
const jsonString = JSON.stringify(exportData);
|
const jsonString = JSON.stringify(exportData);
|
||||||
const compressed = pako.deflate(jsonString);
|
const compressed = pako.deflate(jsonString);
|
||||||
const encoded = btoa(String.fromCharCode.apply(null, compressed));
|
const encoded = btoa(
|
||||||
|
String.fromCharCode.apply(null, Array.from(compressed)),
|
||||||
|
);
|
||||||
try {
|
try {
|
||||||
await navigator.clipboard.writeText(encoded);
|
await navigator.clipboard.writeText(encoded);
|
||||||
showToast(Locale.Settings.Sync.ExportSuccess);
|
showToast(Locale.Settings.Sync.ExportSuccess);
|
||||||
|
Loading…
Reference in New Issue
Block a user