fix: bug fix

This commit is contained in:
dataeaseShu
2025-07-29 14:00:06 +08:00
parent df4dc1672a
commit e538466838
2 changed files with 11 additions and 1 deletions
@@ -18,6 +18,7 @@ import icon_window_mini_outlined from '@/assets/svg/icon_window-mini_outlined.sv
import icon_copy_outlined from '@/assets/svg/icon_copy_outlined.svg'
import { useI18n } from 'vue-i18n'
import SQLComponent from '@/views/chat/component/SQLComponent.vue'
import { useAssistantStore } from '@/stores/assistant'
const props = withDefaults(
defineProps<{
@@ -50,6 +51,8 @@ const dataObject = computed<{
}
return {}
})
const assistantStore = useAssistantStore()
const isAssistant = computed(() => assistantStore.getAssistant)
const data = computed(() => {
if (props.isPredict) {
@@ -321,7 +324,7 @@ function copy() {
<el-drawer
v-model="sqlShow"
size="600"
:size="isAssistant ? '100%' : '600px'"
:title="t('chat.show_sql')"
direction="rtl"
body-class="chart-sql-drawer-body"
+7
View File
@@ -191,3 +191,10 @@ onBeforeUnmount(() => {
}
}
</style>
<style lang="less">
.ed-overlay-dialog,
.ed-drawer {
margin-top: 50px;
}
</style>