review code.

This commit is contained in:
lijiahang
2023-12-01 17:29:42 +08:00
parent 351669a4f3
commit e8d99cb263
21 changed files with 235 additions and 132 deletions

View File

@@ -35,6 +35,7 @@ export const STATUS_ROUTER_LIST = [
export const DEFAULT_TAB = {
title: '工作台',
name: DEFAULT_ROUTE_NAME,
path: DEFAULT_ROUTE_FULL_PATH,
fullPath: DEFAULT_ROUTE_FULL_PATH,
};
@@ -42,10 +43,11 @@ export const DEFAULT_TAB = {
* router 转 tag
*/
export const routerToTag = (route: RouteLocationNormalized): TagProps => {
const { name, meta, fullPath, query } = route;
const { name, meta, path, fullPath, query } = route;
return {
title: meta.locale || '',
name: String(name),
path,
fullPath,
query,
ignoreCache: meta.ignoreCache,