diff --git a/uni_modules/sp-editor/components/sp-editor/sp-editor.vue b/uni_modules/sp-editor/components/sp-editor/sp-editor.vue index 983fc4d9..dfe66e57 100644 --- a/uni_modules/sp-editor/components/sp-editor/sp-editor.vue +++ b/uni_modules/sp-editor/components/sp-editor/sp-editor.vue @@ -84,7 +84,6 @@ source: 'url("https://sungd.github.io/Pacifico.ttf")', }); // #endif - onEditorReady(); }, watch: { templates: function (new_val, old_val) { @@ -93,6 +92,9 @@ } }, }, + mounted() { + onEditorReady(); + }, methods: { onEditorReady() { // #ifdef MP-BAIDU