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>