File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import icon_window_mini_outlined from '@/assets/svg/icon_window-mini_outlined.sv
1818import icon_copy_outlined from ' @/assets/svg/icon_copy_outlined.svg'
1919import { useI18n } from ' vue-i18n'
2020import SQLComponent from ' @/views/chat/component/SQLComponent.vue'
21+ import { useAssistantStore } from ' @/stores/assistant'
2122
2223const props = withDefaults (
2324 defineProps <{
@@ -50,6 +51,8 @@ const dataObject = computed<{
5051 }
5152 return {}
5253})
54+ const assistantStore = useAssistantStore ()
55+ const isAssistant = computed (() => assistantStore .getAssistant )
5356
5457const data = computed (() => {
5558 if (props .isPredict ) {
@@ -321,7 +324,7 @@ function copy() {
321324
322325 <el-drawer
323326 v-model =" sqlShow"
324- size =" 600 "
327+ : size =" isAssistant ? '100%' : '600px' "
325328 :title =" t('chat.show_sql')"
326329 direction =" rtl"
327330 body-class =" chart-sql-drawer-body"
Original file line number Diff line number Diff line change @@ -191,3 +191,10 @@ onBeforeUnmount(() => {
191191 }
192192}
193193 </style >
194+
195+ <style lang="less">
196+ .ed-overlay-dialog ,
197+ .ed-drawer {
198+ margin-top : 50px ;
199+ }
200+ </style >
You can’t perform that action at this time.
0 commit comments