From 476569c60192a7ff3b2c291e7eb72f1c2c6b9aaa Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 27 九月 2024 18:13:03 +0800
Subject: [PATCH] 测试完成
---
src/views/knowledge/education/index.vue | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/views/knowledge/education/index.vue b/src/views/knowledge/education/index.vue
index 1dde0b4..1c7494d 100644
--- a/src/views/knowledge/education/index.vue
+++ b/src/views/knowledge/education/index.vue
@@ -447,7 +447,7 @@
<el-dialog title="妯℃澘棰勮" :visible.sync="previewtf" width="60%">
<div class="preview-left">
<!-- 鍗曢�� -->
- <div v-html="richText"></div>
+ <div v-html="htmlRichText"></div>
</div>
<!-- <span slot="footer" class="dialog-footer">
<el-button @click="previewGo">鍓嶅線妯℃澘璇︽儏淇敼</el-button>
@@ -501,7 +501,7 @@
haoeducation: "",
indexid: null,
inputValue: "",
- richText: "",
+ htmlRichText: "",
radio: "涓诲垎绫�",
inputVisible: false,
previewtf: false,
@@ -652,14 +652,14 @@
},
// 鏌ョ湅瀹f暀
Vieweducation(row) {
- this.richText = null;
+ this.htmlRichText = null;
this.previewtf = true;
axios
- .get(row.richText)
+ .get(row.htmlRichText)
.then((response) => {
console.log(response.data, "鏁版嵁"); // 杈撳嚭鑾峰彇鍒扮殑鏂囦欢鍐呭
- this.richText = response.data;
- this.richText = this.addStyleToImages(this.richText);
+ this.htmlRichText = response.data;
+ this.htmlRichText = this.addStyleToImages(this.htmlRichText);
})
.catch((error) => {
this.$modal.msgError("鑾峰彇瀵屾枃鏈け璐�");
--
Gitblit v1.9.3