From fedf822fdb23723354ae8d1f8e7b5967abe48d05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=98=89=E8=B1=AA?= <42510293+ziyujiahao@users.noreply.github.com> Date: Wed, 22 Oct 2025 22:05:40 +0800 Subject: [PATCH] fix(Dashboard):Fixed the issue of displaying incorrect chart types when adding them again after selecting the chart type on the dashboard (#349) --- frontend/src/views/dashboard/editor/ChatChartSelection.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/dashboard/editor/ChatChartSelection.vue b/frontend/src/views/dashboard/editor/ChatChartSelection.vue index 7e704d04..f422aa73 100644 --- a/frontend/src/views/dashboard/editor/ChatChartSelection.vue +++ b/frontend/src/views/dashboard/editor/ChatChartSelection.vue @@ -80,10 +80,6 @@ const currentChat = ref(new ChatInfo()) const chartInfoList = ref>([]) const emits = defineEmits(['addChatChart']) -onMounted(() => { - getChatList() -}) - function selectChange(value: boolean, viewInfo: any) { if (value) { // @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment @@ -200,7 +196,10 @@ function getChatList() { const dialogInit = () => { dialogShow.value = true + currentChatId.value = undefined state.curMultiplexingComponents = [] + chartInfoList.value = [] + getChatList() } const saveMultiplexing = () => {