fix upload progressTimer

This commit is contained in:
afc163 2017-03-10 15:14:15 +08:00
parent 8fe13f9113
commit 23415a062f

View File

@ -137,6 +137,7 @@ export default class Upload extends React.Component<UploadProps, any> {
autoUpdateProgress(_, file) {
const getPercent = genPercentAdd();
let curPercent = 0;
this.clearProgressTimer();
this.progressTimer = setInterval(() => {
curPercent = getPercent(curPercent);
this.onProgress({