diff --git a/nezha-fronted/src/components/charts/richTextEditor.vue b/nezha-fronted/src/components/charts/richTextEditor.vue index 8e99692c4..7d849d368 100644 --- a/nezha-fronted/src/components/charts/richTextEditor.vue +++ b/nezha-fronted/src/components/charts/richTextEditor.vue @@ -22,7 +22,7 @@ toolbar:[ [{ 'header': [1, 2, 3, 4, 5, 6, false] }], ['bold', 'italic', 'underline', 'strike'], - ['link'], + ['link','code-block'], [{ 'list': 'ordered'}, { 'list': 'bullet' }], [{ 'color': [] }, { 'background': [] }], [{ 'align': [] }], @@ -54,7 +54,7 @@ }, getHtml:function(){ let html=this.quill.root.innerHTML; - return html; + return `
${html}
`; }, guid() { function S4() { diff --git a/nezha-fronted/src/components/charts/text-chart.vue b/nezha-fronted/src/components/charts/text-chart.vue index 9d9312cfc..a983bf075 100644 --- a/nezha-fronted/src/components/charts/text-chart.vue +++ b/nezha-fronted/src/components/charts/text-chart.vue @@ -31,7 +31,7 @@
-
+
@@ -43,7 +43,11 @@ {{data.title}}
-
+
+ +
+
+
@@ -54,12 +58,9 @@