| | |
| | | placeholder="在这里输入您的问题开始和AI对话" |
| | | clearable |
| | | > |
| | | |
| | | </el-input> |
| | | <InputTip ref="inputTipRef" :inputValue="inputValue" @updateInputValue="updateInputValue" :isHome="isHome" /> |
| | | </div> |
| | | <div class="h100 flex items-center"> |
| | | <div class="h100 flex items-end"> |
| | | <div class="upload_img space-y"> |
| | | <div class="imgbox cursor-pointer flex items-center"> |
| | | <el-button |
| | |
| | | type: String, |
| | | }); |
| | | const inputRef = ref<InputInstance>(null); |
| | | // useSyncMsg({ |
| | | // msgList: props.msgList, |
| | | // updateLoadIndex: () => {}, |
| | | // }); |
| | | const test = () => { |
| | | // useSyncMsg({ |
| | | // msgList: props.msgList, |
| | | // updateLoadIndex: () => {}, |
| | | // }); |
| | | return; |
| | | const recentIds = [ |
| | | { id: 'a1b2c3d4', time: '2024-03-27 15:42:33' }, |
| | | { id: 'e5f6g7h8', time: '2024-02-15 09:23:45' }, |
| | | { id: 'i9j0k1l2', time: '2024-05-08 14:37:21' }, |
| | | { id: 'm3n4o5p6', time: '2024-01-30 11:55:16' }, |
| | | { id: 'q7r8s9t0', time: '2024-07-12 16:48:59' }, |
| | | { id: 'u1v2w3x4', time: '2024-04-03 10:15:27' }, |
| | | { id: 'y5z6a7b8', time: '2024-06-21 13:29:44' }, |
| | | { id: 'c9d0e1f2', time: '2024-08-09 17:52:38' }, |
| | | { id: 'g3h4i5j6', time: '2024-09-14 12:33:51' }, |
| | | { id: 'k7l8m9n0', time: '2024-10-25 08:19:07' }, |
| | | ]; |
| | | // const userHistoryIds = reverse(msgList.value.filter((item) => item.role === RoleEnum.user).map((item) => item.historyId)); |
| | | const currentHistoryIds = [ |
| | | { id: 'a1b2c3d4', time: '2024-03-27 15:42:33' }, |
| | | { id: 'e5f6g7h8', time: '2024-02-15 09:23:45' }, |
| | | // {id: 'i9j0k1l2', time: '2024-05-08 14:37:21'}, |
| | | // {id: 'm3n4o5p6', time: '2024-01-30 11:55:16'}, |
| | | { id: 'q7r8s9t0', time: '2024-07-12 16:48:59' }, |
| | | // {id: 'u1v2w3x4', time: '2024-04-03 10:15:27'}, |
| | | { id: 'y5z6a7b8', time: '2024-06-21 13:29:44' }, |
| | | { id: 'c9d0e1f2', time: '2024-08-09 17:52:38' }, |
| | | { id: 'g3h4i5j6', time: '2024-09-14 12:33:51' }, |
| | | // {id: 'k7l8m9n0', time: '2024-10-25 08:19:07'}, |
| | | ]; |
| | | |
| | | const unSyncedHistoryIds = differenceBy(recentIds, currentHistoryIds, 'id'); |
| | | const unSyncedUserMsgs = []; |
| | | // const unSyncedMsgs =await loadReplyData(unSyncedUserMsgs); |
| | | }; |
| | | const updateInputValue = (val) => { |
| | | inputValue.value = val; |
| | | }; |