From 64528b216d09282ad6897fc314f9a0ded633be77 Mon Sep 17 00:00:00 2001 From: Fine Date: Wed, 20 Dec 2023 15:09:17 +0800 Subject: [PATCH] fix: config --- src/views/dashboard/configuration/Tab.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/dashboard/configuration/Tab.vue b/src/views/dashboard/configuration/Tab.vue index bac45826..4bf394af 100644 --- a/src/views/dashboard/configuration/Tab.vue +++ b/src/views/dashboard/configuration/Tab.vue @@ -56,13 +56,14 @@ limitations under the License. --> ElMessage.error("Only support the is_present function"); return; } - const children = dashboardStore.selectedGrid.children || []; + const children = JSON.parse(JSON.stringify(dashboardStore.selectedGrid.children || [])); for (const item of children) { if (item.name === name) { item.expression = expressions[name]; } } + dashboardStore.selectWidget({ ...dashboardStore.selectedGrid, children }); } function applyConfig() {