2025-07-25 14:01:34 +08:00

32 lines
890 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<DialogMarkdown :text="content"/>
</template>
<script>
import DialogMarkdown from "../../DialogMarkdown.vue";
export default {
components: {DialogMarkdown},
props: {
msg: Object,
},
data() {
return {};
},
computed: {
content() {
return [
"### {{机器人}} " + this.msg.data.nickname + " (ID:" + this.msg.data.userid + ") {{已加入的会话}}",
"",
"| {{会话ID}} | {{会话名称}} |",
"| ------ | ------ |",
...this.msg.data.list.map(item => {
return "| " + item.id + " | " + item.name + (item.type === 'user' ? "{{ (个人)}}" : "") + " |";
}),
].map(item => item.replace(/\{\{([^}]+)\}\}/g, (_, v1) => this.$L(v1))).join("\n");
},
},
methods: {},
}
</script>