Browse Source

富文本

zs 2 years ago
parent
commit
79eb495e7d
1 changed files with 5 additions and 1 deletions
  1. 5 1
      pagesMy/apply/add.vue

+ 5 - 1
pagesMy/apply/add.vue

@@ -103,7 +103,11 @@
 						}
 						// 系统设置
 						let config = await that.$api(`/config`, 'GET', {});
-						if (config.errcode == '0') that.$set(that, `config`, config.data);
+						if (config.errcode == '0') {
+							if (config.data.leader_rule) config.data.leader_rule = config.data.leader_rule.replace(/\<img/gi,
+								'<img class="rich-img"');
+								that.$set(that, `config`, config.data);
+						}
 					},
 					fail: (err) => {}
 				})