diff --git a/src/main.js b/src/main.js index 01fa7b188d3ed0959358c1e1640a2310434ce2b4..883a33e9af87c2ca48868a05bee58953cfce7cb3 100644 --- a/src/main.js +++ b/src/main.js @@ -62,7 +62,8 @@ router.beforeEach((to, from, next) => { if (whiteList.indexOf(to.path) !== -1) { next() } else { - next('/login') + next('/login'); + NProgress.done(); // 在hash模å¼ä¸‹ 改å˜æ‰‹åŠ¨æ”¹å˜hash ä¸ä¼šè§¦å‘afterEach æš‚æ—¶hack方案 ps:history模å¼ä¸‹æ— 问题,å¯åˆ é™¤è¯¥è¡Œï¼ } } });