Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -14,6 +14,9 @@ export default route(function () {
|
||||
routes
|
||||
})
|
||||
|
||||
if (typeof window !== 'undefined' && process.env.DEV) {
|
||||
window.__router = router
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
🔐 GLOBAL GUARD
|
||||
@@ -23,6 +26,17 @@ export default route(function () {
|
||||
const auth = useAuthStore()
|
||||
const perm = usePermissionStore()
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
console.warn('🧭 ROUTE GUARD HIT:', {
|
||||
path: to.fullPath,
|
||||
meta: to.meta
|
||||
})
|
||||
}
|
||||
|
||||
if (typeof window !== 'undefined' && process.env.DEV) {
|
||||
window.__auth = auth
|
||||
window.__perm = perm
|
||||
}
|
||||
|
||||
/* ================= PUBLIC ================= */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user