mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-11 10:25:54 +00:00
fix: 任务描述保存图片失败
This commit is contained in:
parent
3203da411d
commit
856037c3c9
@ -495,7 +495,7 @@ export default {
|
||||
|
||||
transferChange(visible) {
|
||||
if (!visible && this.editorT != null) {
|
||||
this.content = this.editorT.getBody().innerHTML;
|
||||
this.content = this.editorT.getContent();
|
||||
this.$emit('input', this.content);
|
||||
this.editorT.destroy();
|
||||
this.editorT = null;
|
||||
@ -547,13 +547,13 @@ export default {
|
||||
if (this.getEditor() === null) {
|
||||
return "";
|
||||
}
|
||||
return this.getEditor().getBody().innerHTML;
|
||||
return this.getEditor().getContent();
|
||||
},
|
||||
|
||||
setContent(content) {
|
||||
if (this.getEditor() === null) {
|
||||
this.content = content;
|
||||
} else if (content != this.getEditor().getBody().innerHTML) {
|
||||
} else if (content != this.getEditor().getContent()) {
|
||||
this.getEditor().setContent(content);
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user