From 7be71341f75d5a2db89b9874a75aee49f99c5db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E7=BA=AF?= Date: Fri, 23 Apr 2021 14:08:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96plugin-layout?= =?UTF-8?q?=E5=AF=B9=E6=B2=A1=E6=9C=89=E6=9D=83=E9=99=90=E7=9A=84=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-plugin-layout/src/runtime/runtime.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/fes-plugin-layout/src/runtime/runtime.js b/packages/fes-plugin-layout/src/runtime/runtime.js index c0e04ebc..c676984f 100644 --- a/packages/fes-plugin-layout/src/runtime/runtime.js +++ b/packages/fes-plugin-layout/src/runtime/runtime.js @@ -1,4 +1,5 @@ import { plugin, ApplyPluginsType } from '@@/core/coreExports'; +// eslint-disable-next-line import/extensions import { access as accessApi } from '../plugin-access/core'; import Exception404 from './views/404'; import Exception403 from './views/403'; @@ -25,7 +26,7 @@ const handle = (type, router) => { } }; -export const access = { +export const access = memo => ({ unAccessHandler({ router, to, from, next }) { @@ -65,5 +66,6 @@ export const access = { } handle(404, router); next('/404'); - } -}; + }, + ...memo +});