mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: bug fix
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -191,3 +191,10 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="less">
|
||||
.ed-overlay-dialog,
|
||||
.ed-drawer {
|
||||
margin-top: 50px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user