getSingTop() {
var that = this
area_axios.get('http://localhost:8080/markdown/selBlogById?id='+this.$route.params.id)
.then(function (response) {
response.data.markHtml = response.data.markHtml.replace(/<img/g,"<img style='max-width:100%;height:auto;'");
that.singBlog = response.data
})
.catch(function (error) {
console.log(error);
});
},
vue 读取图片自适应 布局
最新推荐文章于 2023-12-28 08:01:44 发布