mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
feat(plugin-access): 优化路由切换时无权限的处理:存在处理器时不默认next(false)
This commit is contained in:
parent
3da70fc0be
commit
998531f878
@ -19,10 +19,13 @@ export function onRouterCreated({ router }) {
|
|||||||
initialValue: {}
|
initialValue: {}
|
||||||
});
|
});
|
||||||
if (runtimeConfig.noAccessHandler && typeof runtimeConfig.noAccessHandler === 'function') {
|
if (runtimeConfig.noAccessHandler && typeof runtimeConfig.noAccessHandler === 'function') {
|
||||||
runtimeConfig.noAccessHandler(router, to, from);
|
runtimeConfig.noAccessHandler({
|
||||||
}
|
router, to, from, next
|
||||||
|
});
|
||||||
|
} else {
|
||||||
next(false);
|
next(false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user