Skip to content

Commit 7e4e09d

Browse files
committed
fix: bug fix
1 parent 95c5eac commit 7e4e09d

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

frontend/src/views/chat/chat-block/ChartBlock.vue

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import icon_sql_outlined from '@/assets/svg/icon_sql_outlined.svg'
1414
import icon_export_outlined from '@/assets/svg/icon_export_outlined.svg'
1515
import icon_file_image_colorful from '@/assets/svg/icon_file-image_colorful.svg'
1616
import icon_file_excel_colorful from '@/assets/svg/icon_file-excel_colorful.svg'
17-
import icon_into_item_outlined from '@/assets/svg/icon_into-item_outlined.svg'
17+
// import icon_into_item_outlined from '@/assets/svg/icon_into-item_outlined.svg'
1818
import icon_window_max_outlined from '@/assets/svg/icon_window-max_outlined.svg'
1919
import icon_window_mini_outlined from '@/assets/svg/icon_window-mini_outlined.svg'
2020
import icon_copy_outlined from '@/assets/svg/icon_copy_outlined.svg'
@@ -200,27 +200,27 @@ function showSql() {
200200
sqlShow.value = true
201201
}
202202
203-
function addToDashboard() {
204-
const recordeInfo = {
205-
id: '1-1',
206-
data: {
207-
data: data.value,
208-
},
209-
chart: {},
210-
}
211-
// @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment
212-
const chartBaseInfo = JSON.parse(props.message?.record?.chart)
213-
recordeInfo['chart'] = {
214-
type: chartBaseInfo.type,
215-
title: chartBaseInfo.title,
216-
columns: chartBaseInfo.columns,
217-
xAxis: chartBaseInfo.axis?.x ? [chartBaseInfo.axis.x] : [],
218-
yAxis: chartBaseInfo.axis?.y ? [chartBaseInfo.axis.y] : [],
219-
series: chartBaseInfo.axis?.series ? [chartBaseInfo.axis.series] : [],
220-
}
221-
// @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment
222-
addViewRef.value?.optInit(recordeInfo)
223-
}
203+
// function addToDashboard() {
204+
// const recordeInfo = {
205+
// id: '1-1',
206+
// data: {
207+
// data: data.value,
208+
// },
209+
// chart: {},
210+
// }
211+
// // @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment
212+
// const chartBaseInfo = JSON.parse(props.message?.record?.chart)
213+
// recordeInfo['chart'] = {
214+
// type: chartBaseInfo.type,
215+
// title: chartBaseInfo.title,
216+
// columns: chartBaseInfo.columns,
217+
// xAxis: chartBaseInfo.axis?.x ? [chartBaseInfo.axis.x] : [],
218+
// yAxis: chartBaseInfo.axis?.y ? [chartBaseInfo.axis.y] : [],
219+
// series: chartBaseInfo.axis?.series ? [chartBaseInfo.axis.series] : [],
220+
// }
221+
// // @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment
222+
// addViewRef.value?.optInit(recordeInfo)
223+
// }
224224
225225
function copy() {
226226
if (props.message?.record?.sql) {

0 commit comments

Comments
 (0)