Open zinwalin opened 5 years ago
src\permission.js
router.beforeEach(async(to, from, next) => { // start progress bar NProgress.start() // set page title document.title = getPageTitle(to.meta.title) // determine whether the user has logged in const hasToken = getToken() if (hasToken) {
beforeEach come with async func, and getToken() return undefined there. Does async calling cause this issue?
src\permission.js