From cae892f7fa165fadbf0c4e8928846f715cda7a88 Mon Sep 17 00:00:00 2001 From: 明梦爽 <2972214568@qq.com> Date: 星期三, 23 三月 2022 18:29:30 +0800 Subject: [PATCH] 增加介绍文档 --- src/components/page/introduce.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/page/introduce.vue b/src/components/page/introduce.vue index f9174f7..41641c1 100644 --- a/src/components/page/introduce.vue +++ b/src/components/page/introduce.vue @@ -14,8 +14,8 @@ </el-col> <!-- 鏂伴椈鍐呭 --> <el-card class="box-card"> - <el-col :span="18"> - <div>{{ this.new.content }}</div> + <el-col> + <div v-html="this.new.content" class="ql-editor"></div> </el-col> </el-card> </el-row> @@ -91,6 +91,7 @@ // console.log(res); if(res.code == 200){ this.new = res.data; + console.log(this.new.content); } }).catch(error => { console.log(error); @@ -115,4 +116,7 @@ .ft-black { color: #000; } +.ql-editor{ + padding: 12px 0px !important; +} </style> \ No newline at end of file -- Gitblit v1.8.0