This commit is contained in:
cansnow
2025-12-17 08:47:58 +08:00
parent 916cb22ecc
commit cf1ad1c24b
68 changed files with 2423 additions and 6104 deletions
+14 -10
View File
@@ -1,17 +1,14 @@
import IMSDK, {
MessageStatus,
MessageType
} from "openim-uniapp-polyfill";
import {
v4 as uuidv4
} from "uuid";
import {
UpdateMessageTypes
} from "@/constant";
import IMSDK, { MessageStatus, MessageType} from "openim-uniapp-polyfill";
import {v4 as uuidv4} from "uuid";
import {UpdateMessageTypes} from "@/constant";
const state = {
historyMessageList: [],
hasMoreMessage: true,
currentMsg: {
"clientMsgID":""
},
currentMsgID:""
};
const mutations = {
@@ -21,9 +18,16 @@ const mutations = {
SET_HAS_MORE_MESSAGE(state, hasMore) {
state.hasMoreMessage = hasMore;
},
SET_CURRENT_MSG(state, msg) {
state.currentMsg = msg;
state.currentMsgID = msg?.clientMsgID || "";
},
};
const actions = {
updateCurrentMsg({commit,state}, message) {
commit("SET_CURRENT_MSG", message);
},
async getHistoryMesageList({commit,state}, params) {
let emptyFlag = true;
try {