mirror of
https://gitee.com/lijingbo-2021/open-anylink-web.git
synced 2025-12-30 02:52:26 +00:00
bug fixed
This commit is contained in:
@@ -10,7 +10,7 @@ import { MsgType } from '@/proto/msg'
|
||||
import { ElMessage } from 'element-plus'
|
||||
|
||||
const props = defineProps(['isShow', 'sessionListSortedKey'])
|
||||
const emit = defineEmits(['update:isShow', 'showUserCard', 'showGroupCard', 'confirm'])
|
||||
const emit = defineEmits(['update:isShow', 'showUserCard', 'showGroupCard', 'confirm', 'close'])
|
||||
|
||||
const userData = useUserStore()
|
||||
const messageData = useMessageStore()
|
||||
@@ -120,13 +120,15 @@ const onOpen = () => {
|
||||
}
|
||||
|
||||
const onClose = () => {
|
||||
emit('update:isShow', false)
|
||||
selected.value = []
|
||||
optionsFromServer.value = {}
|
||||
emit('update:isShow', false)
|
||||
emit('close')
|
||||
}
|
||||
|
||||
const onCancle = () => {
|
||||
emit('update:isShow', false)
|
||||
emit('close')
|
||||
}
|
||||
|
||||
const onClearSelected = () => {
|
||||
|
||||
@@ -1380,13 +1380,17 @@ const handleConfirmForwardMsg = async (sessions) => {
|
||||
} catch (error) {
|
||||
console.error('forward msg error: ', error)
|
||||
} finally {
|
||||
isShowForwardMsgDialog.value = false
|
||||
showForwardMsgDialogTitle.value = ''
|
||||
handleCancleMultiSelect()
|
||||
handleCloseForwardMsg()
|
||||
loadingInstance.close()
|
||||
}
|
||||
}
|
||||
|
||||
const handleCloseForwardMsg = () => {
|
||||
isShowForwardMsgDialog.value = false
|
||||
showForwardMsgDialogTitle.value = ''
|
||||
handleCancleMultiSelect()
|
||||
}
|
||||
|
||||
const showMenuAddOpr = (e) => {
|
||||
addOprMenuRef.value.handleShowMenu(e)
|
||||
}
|
||||
@@ -1774,6 +1778,7 @@ const onShowRecorder = () => {
|
||||
@showUserCard="onShowUserCard"
|
||||
@showGroupCard="onShowGroupCard"
|
||||
@confirm="handleConfirmForwardMsg"
|
||||
@close="handleCloseForwardMsg"
|
||||
>
|
||||
<template #title>
|
||||
<div style="font-size: 16px; font-weight: bold; white-space: nowrap">
|
||||
|
||||
Reference in New Issue
Block a user