diff --git a/packages/fes-plugin-access/src/runtime/runtime.js b/packages/fes-plugin-access/src/runtime/runtime.js index 85da5720..01d19641 100644 --- a/packages/fes-plugin-access/src/runtime/runtime.js +++ b/packages/fes-plugin-access/src/runtime/runtime.js @@ -19,9 +19,12 @@ export function onRouterCreated({ router }) { initialValue: {} }); if (runtimeConfig.noAccessHandler && typeof runtimeConfig.noAccessHandler === 'function') { - runtimeConfig.noAccessHandler(router, to, from); + runtimeConfig.noAccessHandler({ + router, to, from, next + }); + } else { + next(false); } - next(false); } }); }