@@ -165,9 +169,13 @@ export default {
watch: {
formData: {
handler: function() {
- if (this.type == 'policy') {
+ if (this.type == 'policy' || this.type == 'policyRead') {
this.$nextTick(() => {
- this.formatRichText(this.formData.downloadUrl, this.formData.id);
+ this.formatRichText(
+ this.formData.downloadUrl,
+ this.formData.id,
+ this.formData.url
+ );
});
} else {
this.formData.text = this.formData.text.replaceAll(' ', ' ');
@@ -263,7 +271,8 @@ export default {
/deep/.editor {
border: 0;
}
- /deep/p {
+ /deep/p,
+ /deep/#zoom {
img {
max-width: 100%;
}