恢复视频的发布

This commit is contained in:
cansnow
2026-02-15 19:40:36 +08:00
parent 7c6656d1fc
commit abd279e7a7
22 changed files with 236 additions and 129 deletions
+8 -5
View File
@@ -1,8 +1,6 @@
import {
v4 as uuidv4
} from "uuid";
import {v4 as uuidv4} from "uuid";
import IMSDK from "openim-uniapp-polyfill";
import conversation from "./conversation";
const state = {
friendList: [],
blackList: [],
@@ -160,7 +158,7 @@ const actions = {
commit("SET_FRIEND_LIST", [...tmpList, friendInfo]);
}
},
updateFriendInfo({commit,state}, { friendInfo,isRemove = false}) {
updateFriendInfo({commit,state,dispatch }, { friendInfo,isRemove = false}) {
const tmpList = [...state.friendList];
const idx = tmpList.findIndex((item) => item.userID === friendInfo.userID);
@@ -174,6 +172,11 @@ const actions = {
}
commit("SET_FRIEND_LIST", tmpList);
}
if (isRemove) {
const conversationID = friendInfo.userID ? `si_${friendInfo.ownerUserID}_${friendInfo.userID}` : `si_${friendInfo.groupID}`;
dispatch('conversation/deleteConversation',conversationID, { root: true });
}
},
pushNewBlack({ commit, state}, blackInfo) {
const tmpList = [...state.blackList];