diff --git a/src/router/index.ts b/src/router/index.ts index 85a1fe95cc963707dc21395c974073debf8b103a..72794900e1fdbc405fbe14377f92d593e9acb0a4 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -6,6 +6,20 @@ import { getSession, clearSession } from '/@/utils/storage.ts'; import { NextLoading } from '/@/utils/loading.ts'; import { getMenuAdmin, getMenuTest } from '/@/api/menu/index.ts'; +/** + * 路由meta对象参数说明 + * meta: { + * title: 菜单栏及tags栏名称 + * isLink: 是否超链接菜单 + * isHide: 是否隐藏此路由 + * isKeepAlive: 是否缓存组件状态 + * isAffix: 是否固定在tags栏上 + * isIframe: 是否内嵌窗口 + * auth: 当前路由权限 + * icon: 菜单栏及tags栏icon + * } + */ + // 定义动态路由 export const dynamicRoutes: Array = [ {