mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: default chart type in chat
This commit is contained in:
@@ -268,7 +268,7 @@ function exportToImage() {
|
||||
}
|
||||
|
||||
watch(
|
||||
() => chartObject.value.type,
|
||||
() => chartObject.value?.type,
|
||||
(val) => {
|
||||
if (val) {
|
||||
currentChartType.value = val
|
||||
@@ -326,7 +326,7 @@ watch(
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div v-if="message?.record?.sql && data.length > 0 && message?.record?.chart">
|
||||
<div v-if="message?.record?.chart">
|
||||
<el-popover
|
||||
ref="exportRef"
|
||||
trigger="click"
|
||||
@@ -367,7 +367,7 @@ watch(
|
||||
</div>
|
||||
</el-popover>
|
||||
</div>
|
||||
<div v-if="message?.record?.sql && data.length > 0 && message?.record?.chart">
|
||||
<div v-if="message?.record?.chart">
|
||||
<el-tooltip effect="dark" :content="t('chat.add_to_dashboard')" placement="top">
|
||||
<el-button class="tool-btn" text @click="addToDashboard">
|
||||
<el-icon size="16">
|
||||
|
||||
Reference in New Issue
Block a user