diff --git a/framework/sdk-parent/frontend/src/components/MsMarkDownText.vue b/framework/sdk-parent/frontend/src/components/MsMarkDownText.vue index bdbb512aef..122e9d2707 100644 --- a/framework/sdk-parent/frontend/src/components/MsMarkDownText.vue +++ b/framework/sdk-parent/frontend/src/components/MsMarkDownText.vue @@ -164,6 +164,11 @@ export default { } }, mounted() { + let markdownIt = this.$refs.md.markdownIt; + if (markdownIt) { + // 解决英文引号变成中文引号的问题 + markdownIt.options.typographer = false; + } if (!this.disabled) { // 点击编辑,失去焦点展示 let el = document.getElementById(this.id); diff --git a/test-track/frontend/src/business/case/components/richtext/MsMarkDownText.vue b/test-track/frontend/src/business/case/components/richtext/MsMarkDownText.vue index 2337689d65..bc689c50a3 100644 --- a/test-track/frontend/src/business/case/components/richtext/MsMarkDownText.vue +++ b/test-track/frontend/src/business/case/components/richtext/MsMarkDownText.vue @@ -153,6 +153,11 @@ } }, mounted() { + let markdownIt = this.$refs.md.markdownIt; + if (markdownIt) { + // 解决英文引号变成中文引号的问题 + markdownIt.options.typographer = false; + } if (!this.disabled) { // 点击编辑,失去焦点展示 let el = document.getElementById(this.id);