From e692876c289a227b92476b13b355987a18b59422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?= Date: Tue, 5 May 2020 11:06:51 +0800 Subject: [PATCH] docs: add tips --- src/permission.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/permission.js b/src/permission.js index 750aeab6..ff5eaad2 100644 --- a/src/permission.js +++ b/src/permission.js @@ -24,7 +24,7 @@ router.beforeEach(async(to, from, next) => { if (to.path === '/login') { // if is logged in, redirect to the home page next({ path: '/' }) - NProgress.done() + NProgress.done() // hack: https://github.com/PanJiaChen/vue-element-admin/pull/2939 } else { // determine whether the user has obtained his permission roles through getInfo const hasRoles = store.getters.roles && store.getters.roles.length > 0