Skip to content

Commit

Permalink
fix: $loading().set(Infinity) issue (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaodeng authored Nov 30, 2020
1 parent e58c136 commit 7b32262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const setupProgress = (axios) => {
})

const onProgress = e => {
if (!currentRequests) {
if (!currentRequests || !e.total) {
return
}
const progress = ((e.loaded * 100) / (e.total * currentRequests))
Expand Down

0 comments on commit 7b32262

Please sign in to comment.