|
@@ -46,6 +46,7 @@ export default {
|
|
|
mixins,
|
|
|
props: {
|
|
|
isShow: Boolean,
|
|
|
+ curFrom: String,
|
|
|
curObj: Object
|
|
|
},
|
|
|
inject: ['parentData'],
|
|
@@ -116,7 +117,7 @@ export default {
|
|
|
let subscription;
|
|
|
// 调用sdk上传接口获得相应的observable,控制上传和暂停
|
|
|
// let observable = qiniu.upload(curFile.raw, curFile.name, this.fileConfig.token, putExtra, config);
|
|
|
- let observable = qiniu.upload(curFile.raw, convertFileName(curFile.name, 'onlyName'), this.fileConfig.token, putExtra, config);
|
|
|
+ let observable = qiniu.upload(curFile.raw, this.curFrom+convertFileName(curFile.name, 'onlyName'), this.fileConfig.token, putExtra, config);
|
|
|
observable.subscribe(next, null, complete)
|
|
|
|
|
|
// this.$refs.upload.submit();
|