Commit 440f4590 authored by 徐俊's avatar 徐俊

xujun

parent f6d361d8
...@@ -50,9 +50,7 @@ export default { ...@@ -50,9 +50,7 @@ export default {
uploadFile (obj, index) { uploadFile (obj, index) {
this.$api.base.asyncApplyBookUpload(this.uploadHandle(obj.file, obj.name)).then(({ data = {} }) => { this.$api.base.asyncApplyBookUpload(this.uploadHandle(obj.file, obj.name)).then(({ data = {} }) => {
if (data) { if (data) {
obj.fileName = files[0].name this.$message.success('上传成功!')
obj.downloadUrl = data.downloadUrl
obj.downloadId = data.id
} else } else
this.$message.error('上传失败1') this.$message.error('上传失败1')
}).catch(() => { }).catch(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment