|
@@ -146,7 +146,7 @@
|
|
|
@select="onActionSelect"
|
|
|
/>
|
|
|
<!-- @样式 -->
|
|
|
- <div class="assign" v-if="wsStore.toUserInfo.type == 'group'">
|
|
|
+ <div class="assign" v-if="wsStore.toUserInfo.type == 'group' && wsStore.isassign" @click="changAssign">
|
|
|
<div class="assign-text">有人@我</div>
|
|
|
</div>
|
|
|
<!-- 引用消息展示 -->
|
|
@@ -377,6 +377,9 @@ const imMessages = computed(() =>{
|
|
|
return item;
|
|
|
});
|
|
|
})
|
|
|
+const changAssign = () => {
|
|
|
+ wsStore.isassign = '';
|
|
|
+}
|
|
|
|
|
|
|
|
|
// 滚动到底部
|
|
@@ -421,7 +424,7 @@ const currentBottomHeight = computed(() => {
|
|
|
|
|
|
// 切换表情/工具面板
|
|
|
const toggleAppBox = async (type) => {
|
|
|
- if(wsStore.chatDelAuth[ wsStore.toUserInfo.uuid]){
|
|
|
+ if(!wsStore.verifyChatAuth(wsStore.toUserInfo.uuid)){
|
|
|
showToast(`${wsStore.toUserInfo.type == 'user' ? '对方已删除' : '您已不在群聊里面'}`);
|
|
|
return;
|
|
|
}
|
|
@@ -609,7 +612,7 @@ let audioChunks = [];
|
|
|
|
|
|
// 切换文字/语音输入模式
|
|
|
const toggleVoiceMode = () => {
|
|
|
- if(wsStore.chatDelAuth[wsStore.toUserInfo.uuid]){
|
|
|
+ if(!wsStore.verifyChatAuth(wsStore.toUserInfo.uuid)){
|
|
|
showToast(`${wsStore.toUserInfo.type == 'user' ? '对方已删除' : '您已不在群聊里面'}`);
|
|
|
return;
|
|
|
}
|
|
@@ -755,7 +758,7 @@ const renderQuoteContent = (msg) => {
|
|
|
|
|
|
// 发送消息
|
|
|
const sendMessage = () => {
|
|
|
- if(wsStore.chatDelAuth[wsStore.toUserInfo.uuid]){
|
|
|
+ if(!wsStore.verifyChatAuth(wsStore.toUserInfo.uuid)){
|
|
|
showToast(`${wsStore.toUserInfo.type == 'user' ? '对方已删除' : '您已不在群聊里面'}`);
|
|
|
return;
|
|
|
}
|
|
@@ -789,10 +792,9 @@ console.log(wsStore.toUserInfo);
|
|
|
ccMsg.value = []; // 清空 @成员
|
|
|
scrollToBottom();
|
|
|
};
|
|
|
-
|
|
|
// 发送图片消息
|
|
|
const afterRead = async (file) => {
|
|
|
- if(wsStore.chatDelAuth[wsStore.toUserInfo.uuid]){
|
|
|
+ if(!wsStore.verifyChatAuth(wsStore.toUserInfo.uuid)){
|
|
|
showToast(`${wsStore.toUserInfo.type == 'user' ? '对方已删除' : '您已不在群聊里面'}`);
|
|
|
return;
|
|
|
}
|
|
@@ -927,7 +929,7 @@ const goToPage = (item) => {
|
|
|
}
|
|
|
const goBack = () => router.push("im");
|
|
|
const goDetail = () =>{
|
|
|
- if(wsStore.chatDelAuth[ wsStore.toUserInfo.uuid]){
|
|
|
+ if(!wsStore.verifyChatAuth(wsStore.toUserInfo.uuid)){
|
|
|
showToast(`${wsStore.toUserInfo.type == 'user' ? '对方已删除' : '您已不在群聊里面'}`);
|
|
|
return;
|
|
|
}
|