Skip to content

Commit 2903fd5

Browse files
ricardogobbosouzapi0
authored andcommittedOct 23, 2019
fix(progress): handle canceled requests (#301)
1 parent cbf5131 commit 2903fd5

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.