mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
31 lines
756 B
Vue
31 lines
756 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 + " |",
|
|
].map(item => item.replace(/\{\{([^}]+)\}\}/g, (_, v1) => this.$L(v1))).join("\n");
|
|
},
|
|
},
|
|
methods: {},
|
|
}
|
|
</script>
|