Revert "Use structuredClone instead of JSON.parse(JSON.stringify()) (S7784)"

This reverts commit 2b0dadedd4.
This commit is contained in:
2026-03-10 00:50:31 +08:00
parent f0065db295
commit d4429571d5
9 changed files with 32 additions and 32 deletions

View File

@@ -586,7 +586,7 @@ const isCompareDisabledButton = computed(() => {
const reallyDeleteData = computed(() => {
let result = [];
if (store.allFiles.length !== 0) {
result = structuredClone(store.allFiles);
result = JSON.parse(JSON.stringify(store.allFiles));
result = result.filter((file) => file.is_deleted === true);
}
return result;
@@ -602,7 +602,7 @@ watch(filesTag, (newValue) => {
watch(allFiles, (newValue) => {
if (newValue !== null)
compareData.value = structuredClone(newValue);
compareData.value = JSON.parse(JSON.stringify(newValue));
});
watch(