From 22b8f8e872d5ff789113db3996d779bfe44118ab Mon Sep 17 00:00:00 2001 From: kangert Date: Sat, 19 Jun 2021 10:08:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E8=B7=AF=E7=94=B1meta?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=E5=8F=82=E6=95=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/router/index.ts b/src/router/index.ts index 85a1fe9..7279490 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 = [ { -- Gitee