feat: 添加getRouter

This commit is contained in:
万纯 2021-03-11 16:18:56 +08:00
parent 50946378a2
commit ad52cad5a3
2 changed files with 5 additions and 1 deletions

View File

@ -293,7 +293,7 @@ export default function (api) {
api.addCoreExports(() => [ api.addCoreExports(() => [
{ {
specifiers: ['getRoutes'], specifiers: ['getRoutes', 'getRouter'],
source: absCoreFilePath source: absCoreFilePath
} }
]); ]);

View File

@ -33,3 +33,7 @@ export const createRouter = () => {
return router; return router;
}; };
export const getRouter = ()=>{
return router;
}