Browse Source

editor chat

master
skyboy 10 months ago
parent
commit
f668f4b738
  1. 8
      frontend/src/components/localchat/ChatContent.vue

8
frontend/src/components/localchat/ChatContent.vue

@ -2,8 +2,8 @@
import { onMounted, inject, ref, nextTick, watch } from "vue";
import { useLocalChatStore } from "@/stores/localchat";
import { formatChatTime } from "@/util/common";
import Vditor from "vditor";
import "vditor/dist/index.css";
// import Vditor from "vditor";
// import "vditor/dist/index.css";
import { ElScrollbar } from "element-plus";
import { System } from "@/system";
const sys:any = inject<System>("system");
@ -38,7 +38,9 @@ watch(
);
function replaceIconTags(text:any) {
// {**}
text = Vditor.md2html(text);
// console.log(text)
// text = Vditor.md2html(text);
// console.log(text)
const regex = /\{\-(.*?)\-\}/g;
// 使replace

Loading…
Cancel
Save