mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-04-06 03:57:54 +08:00
9 lines
242 B
TypeScript
9 lines
242 B
TypeScript
import type { Router } from 'vue-router';
|
|
|
|
export function setupRouterGuard(router: Router) {
|
|
router.beforeEach((to, from, next) => {
|
|
console.log('%c [to]-24', 'font-size:13px; background:pink; color:#bf2c9f;', to);
|
|
next();
|
|
});
|
|
}
|