Skip to content

Commit 387076a

Browse files
committed
fix: bug fix
1 parent 9dd4b72 commit 387076a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

frontend/src/views/embedded/index.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</div>
2121
</template>
2222
<script setup lang="ts">
23-
import { onBeforeMount, onBeforeUnmount, ref } from 'vue'
23+
import { onBeforeMount, onBeforeUnmount, ref, onMounted } from 'vue'
2424
import ChatComponent from '@/views/chat/index.vue'
2525
import LOGO from '@/assets/embedded/LOGO.png'
2626
import icon_sidebar_outlined from '@/assets/embedded/icon_sidebar_outlined.svg'
@@ -80,6 +80,17 @@ const setFormatOnline = (text?: any) => {
8080
}
8181
assistantStore.setOnline(false)
8282
}
83+
84+
onMounted(() => {
85+
const style = document.createElement('style')
86+
style.innerHTML = `.ed-overlay-dialog {
87+
margin-top: 50px;
88+
}
89+
.ed-drawer {
90+
margin-top: 50px;
91+
}`
92+
document.querySelector('head')?.appendChild(style)
93+
})
8394
onBeforeMount(async () => {
8495
const assistantId = route.query.id
8596
const online = route.query.online

0 commit comments

Comments
 (0)