This commit is contained in:
Putoo
2026-06-01 18:49:17 +08:00
parent 8a5b6d31ca
commit eb81a1c381
50 changed files with 1367 additions and 59 deletions

View File

@@ -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>

View File

@@ -1,7 +1,7 @@
<template>
<div class="common">
<Abar href="/user">状态</Abar>.
<Abar href="/bag">物品</Abar>.
<Abar href="/user/bag">物品</Abar>.
<Abar href="/chat">聊天</Abar>
</div>
<div class="common">