editorConfig 的 MENU_CONF(上传图片 server/headers)在 created 中设置, 避免 mounted 阶段编辑器实例已初始化导致配置不生效
@@ -302,9 +302,11 @@ export default {
return this.supplySystems.find(s => s.id === this.form.distributionSystemId)
}
},
- mounted() {
+ created() {
this.editorConfig.MENU_CONF.uploadImage.server = this.uploadActionUrl
this.editorConfig.MENU_CONF.uploadImage.headers = this.uploadHeaders
+ },
+ mounted() {
this.loadSupplySystems()
this.loadPredefinedFields()
if (this.isEdit) {