|
@@ -174,17 +174,13 @@ export default {
|
|
|
file.file.progressFlag= true;
|
|
|
file.file.percentage= Math.floor(p * 100);
|
|
|
file.file.progressPercent= Math.abs(file.file.percentage.toFixed(0));
|
|
|
- console.log(p);
|
|
|
- console.log(_that.fileList);
|
|
|
- console.log('------ali-oss-multi.vue')
|
|
|
+
|
|
|
_that.showProgress = true;
|
|
|
_that.progress = Math.floor(p * 100);
|
|
|
}
|
|
|
- })
|
|
|
- .then(result => { // 上传成功返回值,可针对项目需求写其他逻辑
|
|
|
+ }).then(result => { // 上传成功返回值,可针对项目需求写其他逻辑
|
|
|
_that.saveData(result, file.file.name, file.file.size);
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
+ }).catch(err => {
|
|
|
console.log('err:', err);
|
|
|
});
|
|
|
}
|