| | |
| | | const { x, y, style } = useDraggable(draggableChatRef, { |
| | | handle: chatDragHandlerRef, |
| | | initialValue: { |
| | | x: 210 + 400, |
| | | y: 56 + 110, |
| | | x: document.body.clientWidth / 2 - 350, |
| | | y: document.body.clientHeight / 2 - 400, |
| | | }, |
| | | }); |
| | | |
| | | const questionAi = async (text) => { |
| | | const res = await check_docvector_validate({ |
| | | knowlg_id: chatTestMapRow.value.id, |
| | | question: text, |
| | | }); |
| | | const res = await check_docvector_validate( |
| | | { |
| | | knowlg_id: chatTestMapRow.value.id, |
| | | question: text, |
| | | }, |
| | | { |
| | | loading: false, |
| | | } |
| | | ); |
| | | return res; |
| | | }; |
| | | onMounted(() => { |