data(){
return{
toolbarConfig: {
toolbarKeys: [
'bold',
'underline',
'italic',
'color',
'bgColor',
'fontSize',
'bold',
'indent',
'delIndent',
'justifyLeft',
'justifyRight',
'justifyCenter',
'justifyJustify',
'lineHeight',
'bulletedList',
'numberedList',
'uploadImage',
],
},
}
},
methods:{
init(){
this.editorConfig.MENU_CONF = {
uploadImage: {
fieldName: 'file',
server: baseURL + '/upload',
maxFileSize: 1 * 5196 * 5196,
meta: {
type: 1,
},
headers: { ...this.headers },
customInsert(res, insertFn) {
insertFn(res.data.path, res.data.filename)
},
},
}
}
}
07-27
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交