Skip to content

Commit 5096060

Browse files
ricardogobbosouzapi0
authored andcommitted
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

Lines changed: 5 additions & 0 deletions
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)