Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5096060

Browse files
ricardogobbosouzapi0
authored andcommittedOct 22, 2019
fix(progress): handle canceled requests (#301)
1 parent 709bd7c commit 5096060

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎lib/plugin.js

+5
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ const setupProgress = (axios, ctx) => {
134134
}
135135

136136
currentRequests--
137+
138+
if (axios.isCancel(error)) {
139+
return
140+
}
141+
137142
$loading().fail()
138143
$loading().finish()
139144
})

0 commit comments

Comments
 (0)
Please sign in to comment.