Skip to content
Permalink
Browse files

fix(progress): handle canceled requests (#301)

  • Loading branch information
ricardogobbosouza authored and pi0 committed Oct 22, 2019
1 parent 709bd7c commit 50960609d913d059758658aa88434bd28faa0c47
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/plugin.js
@@ -134,6 +134,11 @@ const setupProgress = (axios, ctx) => {
}

currentRequests--

if (axios.isCancel(error)) {
return
}

$loading().fail()
$loading().finish()
})

0 comments on commit 5096060

Please sign in to comment.
You can’t perform that action at this time.