From fe7284f63c9e9fe496245bcc7230e24b1cebc01a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E7=BA=AF?= Date: Tue, 2 Mar 2021 11:21:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=20=E6=8A=8Avue-router=E7=9A=84?= =?UTF-8?q?=E6=89=80=E6=9C=89api=E9=83=BD=E6=9A=B4=E9=9C=B2=E5=87=BA?= =?UTF-8?q?=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/plugins/generateFiles/core/exports/coreExports.tpl | 5 ++++- packages/fes-runtime/src/index.js | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/fes-preset-built-in/src/plugins/generateFiles/core/exports/coreExports.tpl b/packages/fes-preset-built-in/src/plugins/generateFiles/core/exports/coreExports.tpl index f2cd8f24..54118bbf 100644 --- a/packages/fes-preset-built-in/src/plugins/generateFiles/core/exports/coreExports.tpl +++ b/packages/fes-preset-built-in/src/plugins/generateFiles/core/exports/coreExports.tpl @@ -4,9 +4,12 @@ export { onBeforeRouteUpdate, onBeforeRouteLeave, RouterLink, + RouterView, useLink, createWebHashHistory, - createRouter, + createWebHistory, + createMemoryHistory, + createRouter Plugin, ApplyPluginsType } from '@webank/fes-runtime'; diff --git a/packages/fes-runtime/src/index.js b/packages/fes-runtime/src/index.js index c1a2691b..15283e0c 100644 --- a/packages/fes-runtime/src/index.js +++ b/packages/fes-runtime/src/index.js @@ -5,9 +5,11 @@ export { onBeforeRouteUpdate, onBeforeRouteLeave, RouterLink, + RouterView, useLink, createWebHashHistory, createWebHistory, + createMemoryHistory, createRouter } from 'vue-router';