| | |
| | | import { onClickOutside } from '@vueuse/core'; |
| | | |
| | | export type AssistantContentOptOption = { |
| | | forbidScroll: Ref<boolean>; |
| | | sendChatMessage: any; |
| | | displayMessageList: ComputedRef<ChatMessage[]>; |
| | | }; |
| | | |
| | | export const useAssistantContentOpt = (option: AssistantContentOptOption) => { |
| | | const { forbidScroll, sendChatMessage, displayMessageList } = option; |
| | | const { sendChatMessage, displayMessageList } = option; |
| | | const { toClipboard } = useClipboard(); |
| | | const preQuestion = ref(null); |
| | | |
| | |
| | | answer_state: toSetState, |
| | | }); |
| | | item.state = toSetState; |
| | | forbidScroll.value = true; |
| | | nextTick(() => { |
| | | forbidScroll.value = false; |
| | | }); |
| | | |
| | | }; |
| | | |
| | | const unLikeClick = async (item) => { |
| | |
| | | }); |
| | | item.state = toSetState; |
| | | |
| | | forbidScroll.value = true; |
| | | nextTick(() => { |
| | | forbidScroll.value = false; |
| | | }); |
| | | |
| | | }; |
| | | const feedbackPosition = ref({ |
| | | x: 0, |