Commit 01143797 by 胡锦波

1. init fix

parent e9234cbd
Showing with 3 additions and 3 deletions
......@@ -43,9 +43,6 @@ const compatibleUrl = [
const direction4AbsolutePathMap = new Map<Direction, string>();
/**
* 根据path 和 direction拿到需要重定向的路径, 主要是适配之前的路由
*/
const setDirectionEnum4Url = function(routes: RouteConfig[], prefix = '') {
for (let i = 0; i < routes.length; i++) {
const route = routes[i];
......@@ -62,6 +59,9 @@ const setDirectionEnum4Url = function(routes: RouteConfig[], prefix = '') {
}
};
/**
* 根据oldPath 和 direction拿到需要重定向的路径, 主要是适配老项目的路由
*/
const setCompatibleUrl = function(routes: RouteConfig[]): RedirectPath[] {
setDirectionEnum4Url(routes);
return compatibleUrl.map(i => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment