富文本视频上传

dev_202304
yujialong 2 years ago
parent a95d3f55ca
commit 057f5bfa73
  1. 4
      src/views/parnerOperation/editor.js

@ -349,14 +349,14 @@ export default {
fd.append("file", file); fd.append("file", file);
Axios({ Axios({
method: 'post', method: 'post',
url: Api.fileupload, url: Api.fileUploadNakadai,
data: fd, data: fd,
headers: { headers: {
'Content-Type': 'multipart/form-data', 'Content-Type': 'multipart/form-data',
token: Util.local.get(Setting.tokenKey) token: Util.local.get(Setting.tokenKey)
}, },
}).then(({ data }) => { }).then(({ data }) => {
callback(data.data.filesResult.fileId) callback(data.filesResult.fileUrl)
}).catch(res => {}) }).catch(res => {})
} }
//触发点击 //触发点击

Loading…
Cancel
Save