diff --git a/components/uni-ai-msg/uni-ai-msg.vue b/components/uni-ai-msg/uni-ai-msg.vue
index 80c0b7a69741420c715ac320c97db703e2e79e58..9a5895952c77cf42a6e19a28711bc6e25f536b39 100644
--- a/components/uni-ai-msg/uni-ai-msg.vue
+++ b/components/uni-ai-msg/uni-ai-msg.vue
@@ -91,8 +91,11 @@
},
computed: {
html() {
- let html = markdownIt.render(this.md + '|')
- return html
+ if(this.md.split("```").length%2){
+ return markdownIt.render(this.md + ' |');
+ }else{
+ return markdownIt.render(this.md) + ' |';
+ }
},
nodes() {
return this.html