There was an error while loading. Please reload this page.
1 parent 263f8b4 commit 16cf174Copy full SHA for 16cf174
src/components/ue/ue.vue
@@ -21,13 +21,13 @@
21
},
22
mounted() {
23
const _this = this;
24
- this.editor = UE.getEditor('editor', this.config);
+ this.editor = UE.getEditor('editor', this.config); // 初始化UE
25
this.editor.addListener("ready", function () {
26
- _this.editor.setContent(_this.defaultMsg);
+ _this.editor.setContent(_this.defaultMsg); // 确保UE加载完成后,放入内容。
27
});
28
29
methods: {
30
- getUEContent() {
+ getUEContent() { // 获取内容方法
31
return this.editor.getContent()
32
}
33
0 commit comments