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
@@ -183,7 +183,7 @@ const traceList = computed(() => {
const caseData = computed(() => {
if (infiniteData.value !== null) {
const data = structuredClone(infiniteData.value); // Deep copy the original cases data
const data = JSON.parse(JSON.stringify(infiniteData.value)); // Deep copy the original cases data
data.forEach((item) => {
item.facets.forEach((facet, index) => {
item[`fac_${index}`] = facet.value; // Create a new key-value pair
@@ -201,7 +201,7 @@ const caseData = computed(() => {
});
const columnData = computed(() => {
const data = structuredClone(props.cases); // Deep copy the original cases data
const data = JSON.parse(JSON.stringify(props.cases)); // Deep copy the original cases data
if (!data || data.length === 0) return [];
const facetName = (facName) =>
facName