This commit is contained in:
cansnow
2025-12-24 04:12:56 +08:00
parent f49f1f1ad1
commit f289f79813
26 changed files with 636 additions and 484 deletions
+12
View File
@@ -45,6 +45,9 @@ const mutations = {
const actions = {
async getConversationList({state,commit}, isFirstPage = true) {
//#ifndef APP
return [];
//#endif
try {
const {data} = await IMSDK.asyncApi(
IMSDK.IMMethods.GetConversationListSplit,
@@ -65,6 +68,9 @@ const actions = {
}
},
getCurrentGroup({commit}, groupID) {
//#ifndef APP
return [];
//#endif
IMSDK.asyncApi(IMSDK.IMMethods.GetSpecifiedGroupsInfo, uuidv4(), [
groupID,
]).then(({
@@ -74,6 +80,9 @@ const actions = {
});
},
getCurrentMemberInGroup({commit,rootState}, groupID) {
//#ifndef APP
return [];
//#endif
IMSDK.asyncApi(IMSDK.IMMethods.GetSpecifiedGroupMembersInfo, uuidv4(), {
groupID,
userIDList: [rootState.user.selfInfo.userID],
@@ -84,6 +93,9 @@ const actions = {
});
},
getUnReadCount({commit}) {
//#ifndef APP
return [];
//#endif
IMSDK.asyncApi(IMSDK.IMMethods.GetTotalUnreadMsgCount, uuidv4()).then(
(res) => {
//console.log(res);