Open BIGTURKEY opened 3 years ago
setting: { content_style: "p {margin: 10px; border: 5px solid red; padding: 3px}", height: 800, language: 'zh_CN', plugins: "code image axupimgs preview", toolbar: "code axupimgs preview", branding: false, images_upload_handler: function (blobInfo, succFun, failFun) { var file = blobInfo.blob(); //转化为易于理解的file对象 var formdata = new FormData(); formdata.append('files', file) axios.post(${process.env.VUE_APP_BASE_API}/system/oss/uploadListByEditor, formdata, { headers: { 'Content-Type': 'multipart/form-data' }, }).then(result => { console.log(result) if (result.data.code == 200) { succFun(result.data.data[0]) } else { failFun(result.data.code) } }) } }
${process.env.VUE_APP_BASE_API}/system/oss/uploadListByEditor
setting: { content_style: "p {margin: 10px; border: 5px solid red; padding: 3px}", height: 800, language: 'zh_CN', plugins: "code image axupimgs preview", toolbar: "code axupimgs preview", branding: false, images_upload_handler: function (blobInfo, succFun, failFun) { var file = blobInfo.blob(); //转化为易于理解的file对象 var formdata = new FormData(); formdata.append('files', file) axios.post(
${process.env.VUE_APP_BASE_API}/system/oss/uploadListByEditor
, formdata, { headers: { 'Content-Type': 'multipart/form-data' }, }).then(result => { console.log(result) if (result.data.code == 200) { succFun(result.data.data[0]) } else { failFun(result.data.code) } }) } }