Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions backend/apps/chat/curd/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,14 @@ def get_chat_with_records(session: SessionDep, chart_id: int, current_user: Curr

result = list(map(format_record, record_list))

for row in result:
try:
data_value = row.get('data')
if data_value is not None:
row['data'] = format_json_data(data_value)
except Exception:
pass

chat_info.records = result

return chat_info
Expand Down
7 changes: 3 additions & 4 deletions frontend/src/views/dashboard/editor/ChatChartSelection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -200,7 +196,10 @@ function getChatList() {

const dialogInit = () => {
dialogShow.value = true
currentChatId.value = undefined
state.curMultiplexingComponents = []
chartInfoList.value = []
getChatList()
}

const saveMultiplexing = () => {
Expand Down