mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
feat: 导出 router
This commit is contained in:
parent
50946378a2
commit
bdc6f48d9b
@ -293,7 +293,7 @@ export default function (api) {
|
|||||||
|
|
||||||
api.addCoreExports(() => [
|
api.addCoreExports(() => [
|
||||||
{
|
{
|
||||||
specifiers: ['getRoutes'],
|
specifiers: ['getRoutes', 'router'],
|
||||||
source: absCoreFilePath
|
source: absCoreFilePath
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
@ -14,7 +14,7 @@ export function getRoutes() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const ROUTER_BASE = '{{{ routerBase }}}';
|
const ROUTER_BASE = '{{{ routerBase }}}';
|
||||||
let router = null;
|
export let router = null;
|
||||||
export const createRouter = () => {
|
export const createRouter = () => {
|
||||||
if (router) {
|
if (router) {
|
||||||
return router;
|
return router;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user