fix(permission.ts): 单词拼写错误修复

Former-commit-id: cd7f7fe796c6170df78894c7c40ab4c509f514c8
This commit is contained in:
郝先瑞
2022-05-15 20:29:16 +08:00
parent a5a8f2f081
commit 6726a48d4c

View File

@@ -8,7 +8,8 @@ NProgress.configure({ showSpinner: false }); // 进度环显示/隐藏
// 白名单路由
const whiteList = ['/login', '/auth-redirect'];
router.beforeEach(async (to, form, next) => {
router.beforeEach(async (to, from, next) => {
console.log('beforeEach', to);
NProgress.start();
const { user, permission } = useStore();
const hasToken = user.token;