Skip to content

Commit fedf822

Browse files
authored
fix(Dashboard):Fixed the issue of displaying incorrect chart types when adding them again after selecting the chart type on the dashboard (#349)
1 parent db9c7c0 commit fedf822

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

frontend/src/views/dashboard/editor/ChatChartSelection.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ const currentChat = ref<ChatInfo>(new ChatInfo())
8080
const chartInfoList = ref<Array<any>>([])
8181
const emits = defineEmits(['addChatChart'])
8282
83-
onMounted(() => {
84-
getChatList()
85-
})
86-
8783
function selectChange(value: boolean, viewInfo: any) {
8884
if (value) {
8985
// @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -200,7 +196,10 @@ function getChatList() {
200196
201197
const dialogInit = () => {
202198
dialogShow.value = true
199+
currentChatId.value = undefined
203200
state.curMultiplexingComponents = []
201+
chartInfoList.value = []
202+
getChatList()
204203
}
205204
206205
const saveMultiplexing = () => {

0 commit comments

Comments
 (0)