src/router/pathMap.ts
@@ -4,6 +4,8 @@ * */ import { deepClone } from "../utils/other"; export type PathRouteType = { name: String; isKeepAlive: Boolean; @@ -12,10 +14,11 @@ component: String; redirect?: String; showTitle:boolean; showBack:boolean; }; const pathArr = window.route; const cloneData = deepClone(pathArr); const pathArrMap = pathArr.map((item) => { const path = item.path; const mapArr: [String, PathRouteType] = [path, item];