1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-10 21:30:14 +08:00

fix: remove if condition

This commit is contained in:
insua 2018-06-01 15:30:07 +08:00
parent c1b6bcc886
commit 2b67062ede

View File

@ -50,7 +50,6 @@ export default {
watch: { watch: {
value(val) { value(val) {
if (!this.hasChange && this.hasInit) { if (!this.hasChange && this.hasInit) {
if (val === null) val = ''
this.$nextTick(() => this.$nextTick(() =>
window.tinymce.get(this.tinymceId).setContent(val || '')) window.tinymce.get(this.tinymceId).setContent(val || ''))
} }