|
@@ -139,7 +139,7 @@ const msgRecordEvent = async (toIdValue) => {
|
|
|
const PageNum = Math.ceil(chatRecords.data.length / 10) + 1;
|
|
|
if (PageNum * 10 >= resMsgData.total && !noMes.value) {
|
|
|
loading.value = false;
|
|
|
- noMes.value = true;
|
|
|
+ noMes.value = false;
|
|
|
}
|
|
|
const nowtime = parseTime(new Date().getTime(), "{y}-{m}-{d}");
|
|
|
chatRecords.data.map((i) => {
|
|
@@ -282,7 +282,6 @@ const msgSendClick = (event) => {
|
|
|
const msgSendClick2 = (event,icon) => {
|
|
|
if(sendCont.data.toId==null||sendCont.data.toId==0){
|
|
|
return ElMessage({ message: "请添加或者选择会话人员", type: "error" });
|
|
|
- return
|
|
|
}
|
|
|
if ((!event.shiftKey && event.keyCode == 13 && !event.ctrlKey)||icon) {
|
|
|
event.preventDefault();
|
|
@@ -410,7 +409,6 @@ const loadPreviousPage = async () => {
|
|
|
pageNum: currentPageNum,
|
|
|
pageSize: 10,
|
|
|
};
|
|
|
- // setTimeout(async () => {
|
|
|
const resMsgData = await msgRecord(sendCont.data.toId, queryParams);
|
|
|
const previousPageData = resMsgData.rows.reverse();
|
|
|
chatRecords.data = [...previousPageData, ...chatRecords.data];
|