We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a02119c commit 45d5eecCopy full SHA for 45d5eec
src/main.js
@@ -36,7 +36,7 @@ Vue.prototype.$cookie = Cookies
36
router.beforeEach((to, from, next) => {
37
Vue.prototype.$message.closeAll()
38
const CancelToken = Vue.axios.CancelToken
39
- store.state.source.cancel && store.state.source.cancel()
+ from.matched.length && store.state.source.cancel && store.state.source.cancel()
40
store.commit('setSource', CancelToken.source())
41
Vue.axios.post('/views/add', {
42
from: from.fullPath,
0 commit comments