|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | NProgress.configure({ showSpinner: false }); // NProgress Configuration | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const whiteList = ['/login']; // no redirect whitelist | 
|---|
|  |  |  | const whiteList = ['/login', '/sg', '/sgu', '/SignMiddleware', '/SignU']; // no redirect whitelist | 
|---|
|  |  |  |  | 
|---|
|  |  |  | router.beforeEach(async (to, from, next) => { | 
|---|
|  |  |  | // start progress bar | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | /* has no token*/ | 
|---|
|  |  |  | console.log(whiteList.indexOf(to.path), to.path); | 
|---|
|  |  |  | if (whiteList.indexOf(to.path) !== -1) { | 
|---|
|  |  |  | console.log(whiteList.indexOf(to.path), to, to.path); | 
|---|
|  |  |  | if (whiteList.some((x) => to.path.toLowerCase().includes(x.toLowerCase()))) { | 
|---|
|  |  |  | next(); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | permissionStoreHook.resetModuleList(); | 
|---|