1233
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
</span>
|
||||
</span>
|
||||
<span v-if="CheckRole(item.chat.code)">
|
||||
[<Abutton @click="DelChat(item.chat.chatId)">删除</Abutton>]
|
||||
[<Abutton @click="DelChat(item.chat.chatId)">删除</Abutton>.<Abutton @click="BlackChat(item.chat.chatId)">封禁</Abutton>]
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -68,10 +68,13 @@ const CheckRole = (type: string): boolean => {
|
||||
}
|
||||
|
||||
// 1. 声明要触发的事件
|
||||
const emit = defineEmits(['delChat'])
|
||||
const emit = defineEmits(['delChat','blackChat'])
|
||||
|
||||
const DelChat = async (chatId: string) => {
|
||||
emit('delChat', { chatId: chatId });
|
||||
}
|
||||
const BlackChat = async (chatId: string) => {
|
||||
emit('blackChat', { chatId: chatId });
|
||||
}
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user