| | |
| | | answer_state: toSetState, |
| | | }); |
| | | item.state = toSetState; |
| | | |
| | | }; |
| | | |
| | | const unLikeClick = async (item) => { |
| | |
| | | answer_state: toSetState, |
| | | }); |
| | | item.state = toSetState; |
| | | |
| | | |
| | | }; |
| | | const feedbackPosition = ref({ |
| | | x: 0, |
| | |
| | | if (!displayMessageList.value || displayMessageList.value.length === 0) return false; |
| | | const last = displayMessageList.value.at(-1); |
| | | const isShow = last?.role === RoleEnum.assistant && last?.content?.values && last.content?.askMoreList?.length > 0; |
| | | return isShow && !isSharePage ; |
| | | return isShow && !isSharePage; |
| | | }); |
| | | |
| | | const showFixQuestion = (item) => { |
| | | const isShow = item?.role === RoleEnum.assistant && item?.content?.values && item.content?.origin?.err_json?.fix_question; |
| | | const isShow = item?.role === RoleEnum.assistant && item.content?.origin?.sample_question?.length > 0; |
| | | return isShow; |
| | | }; |
| | | const askMoreClick = (item) => { |
| | |
| | | }; |
| | | |
| | | const fixQuestionClick = (item, originData) => { |
| | | if (!item.question) return; |
| | | preQuestion.value = originData?.question; |
| | | if (!item) return; |
| | | // preQuestion.value = originData?.question; |
| | | try { |
| | | sendChatMessage({ |
| | | type: AnswerType.Text, |
| | | values: item.question, |
| | | values: item, |
| | | }); |
| | | } finally { |
| | | preQuestion.value = null; |
| | | // preQuestion.value = null; |
| | | } |
| | | }; |
| | | |