修改produce标蓝显示问题

This commit is contained in:
2026-02-10 13:45:02 +08:00
parent 5edf128cfb
commit d05ffdf9c6

View File

@@ -118,7 +118,7 @@
<i class="el-icon-loading"></i> Fetching highlights, please wait...
</div>
<tinymce v-else
type="tradition"
type="table"
:height="160"
id="tiny-tradition"
ref="tinymceChild2"
@@ -147,7 +147,7 @@
<i class="el-icon-loading"></i> Fetching medical history of objective, please wait...
</div>
<tinymce v-else
type="mhooStr"
type="table"
:height="160"
ref="tinymceChild3"
:tinymceOtherInit="{
@@ -196,7 +196,7 @@
<tinymce
v-else
type="Abstract"
type="table"
:height="160"
ref="tinymceChild1"
id="tiny-abstract"
@@ -1653,7 +1653,16 @@ export default {
}
}
},
wrapWithP(content){
if (!content) return '';
const trimmed = content.trim();
// 判断是否以 <p 开头(兼容带属性的 p 标签)且以 </p> 结尾
if (content.startsWith('<p>')) {
return trimmed;
}
// 如果没有包裹,则手动包裹
return `<p>${trimmed}</p>`;
},
getData() {
const loading = this.$loading({
lock: true,
@@ -1671,7 +1680,7 @@ export default {
this.tradition = null;
this.mhooStr = null;
// 获取文章信息
this.$api
@@ -1680,6 +1689,7 @@ export default {
if (res.code == 0) {
this.abstract = res.data.production.abstract ? res.data.production.abstract : '';
this.tradition = res.data.production.tradition ? res.data.production.tradition : '';
this.mhooStr = res.data.production.mhoo ? res.data.production.mhoo : '';