|
|
@@ -45,6 +45,10 @@ Vue.prototype.$bus = new Vue(); |
|
|
|
|
|
|
|
|
// Route interception |
|
|
// Route interception |
|
|
router.beforeEach((to, from, next) => { |
|
|
router.beforeEach((to, from, next) => { |
|
|
|
|
|
if (!window.enableDebugger && to.path === '/debugger') { |
|
|
|
|
|
next('/'); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
// cancel request |
|
|
// cancel request |
|
|
if (from.path !== '/') { |
|
|
if (from.path !== '/') { |
|
|
store.commit('clearToken'); |
|
|
store.commit('clearToken'); |
|
|
|