1.bug效果
2.原始代码
<el-dialog :visible.sync="dialogVisible" append-to-body>
<img width="100%" :src="dialogImageUrl" alt="">
</el-dialog>
2.解决:
style中加入css样式
/* 解决使用rem后 img变小问题 */
.el-dialog__body img {
width: 100%;
height: 100%;
}
3.效果图: