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

33 lines
918 B
Vue

<template>
<DialogMarkdown :text="content"/>
</template>
<script>
import DialogMarkdown from "../../DialogMarkdown.vue";
export default {
components: {DialogMarkdown},
props: {
msg: Object,
},
data() {
return {};
},
computed: {
content() {
return [
"### {{机器人详情}}",
"",
"| {{属性}} | {{结果}} |",
"| ------ | ------ |",
"| {{机器人ID}} | " + this.msg.data.userid + " |",
"| {{机器人名称}} | " + this.msg.data.nickname + " |",
"| {{保留消息时间}} | " + this.msg.data.clear_day + " |",
"| {{最后一次清理时间}} | " + this.msg.data.clear_at + " |",
].map(item => item.replace(/\{\{([^}]+)\}\}/g, (_, v1) => this.$L(v1))).join("\n");
},
},
methods: {},
}
</script>