Commit f5b47233 by 李伟康

提交代码

1 parent 8d1127b4
...@@ -1416,7 +1416,7 @@ export default { ...@@ -1416,7 +1416,7 @@ export default {
suffixSlot: 'floatingMaskDiagram', suffixSlot: 'floatingMaskDiagram',
handleUpload: (e, file, targetItem) => { handleUpload: (e, file, targetItem) => {
const imgFile = e.target.result, const imgFile = e.target.result,
target = file.type == 'image/png' ? 'uploadImgApi' : 'uploadVideoApi' target = file.type == 'image/gif' ? 'uploadVideoApi' : 'uploadImgApi'
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
this.loading = true this.loading = true
this.$apis.common[target]({ file: base64 }) this.$apis.common[target]({ file: base64 })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!