Skip to content

Commit 7b32262

Browse files
authored
fix: $loading().set(Infinity) issue (#424)
1 parent e58c136 commit 7b32262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const setupProgress = (axios) => {
173173
})
174174

175175
const onProgress = e => {
176-
if (!currentRequests) {
176+
if (!currentRequests || !e.total) {
177177
return
178178
}
179179
const progress = ((e.loaded * 100) / (e.total * currentRequests))

0 commit comments

Comments
 (0)