Skip to content

Commit ae03fa5

Browse files
committed
fix(Smart Questioning): When the output chart is viewed in full screen, it displays the chat list and the icon for creating a new chat.
1 parent b972eee commit ae03fa5

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const { copy } = useClipboard({ legacy: true })
5252
const loading = ref<boolean>(false)
5353
const { t } = useI18n()
5454
const addViewRef = ref(null)
55-
const emits = defineEmits(['exitFullScreen'])
55+
const emits = defineEmits(['exitFullScreen', 'enterFullScreen'])
5656
5757
const dataObject = computed<{
5858
fields: Array<string>
@@ -199,7 +199,15 @@ function reloadChart() {
199199
200200
const dialogVisible = ref(false)
201201
202+
function setHiddenSidebarBtnZIndex(value: string) {
203+
const sidebarBtns = document.querySelectorAll('.hidden-sidebar-btn')
204+
sidebarBtns.forEach((btn) => {
205+
;(btn as HTMLElement).style.zIndex = value
206+
})
207+
}
208+
202209
function openFullScreen() {
210+
setHiddenSidebarBtnZIndex('0')
203211
dialogVisible.value = true
204212
}
205213
@@ -209,6 +217,7 @@ function closeFullScreen() {
209217
210218
function onExitFullScreen() {
211219
dialogVisible.value = false
220+
setHiddenSidebarBtnZIndex('11')
212221
}
213222
214223
const sqlShow = ref(false)

0 commit comments

Comments
 (0)