fix(Dashboard):Fixed the issue of displaying incorrect chart types when adding them again after selecting the chart type on the dashboard (#349)

This commit is contained in:
王嘉豪
2025-10-22 22:05:40 +08:00
committed by GitHub
parent db9c7c0570
commit fedf822fdb
@@ -80,10 +80,6 @@ const currentChat = ref<ChatInfo>(new ChatInfo())
const chartInfoList = ref<Array<any>>([])
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 = () => {