Skip to content

Commit c45d437

Browse files
补充路由配置注释
1 parent 096c1db commit c45d437

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: src/router/routers.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import parentView from '@/components/parent-view'
44
/**
55
* iview-admin中meta除了原生参数外可配置的参数:
66
* meta: {
7-
* title: { String|Number|Function } 显示在侧边栏和
7+
* title: { String|Number|Function }
8+
* 显示在侧边栏、面包屑和标签栏的文字
9+
* 使用'{{ 多语言字段 }}'形式结合多语言使用,例子看多语言的路由配置;
10+
* 可以传入一个回调函数,参数是当前路由对象,例子看动态路由和带参路由
811
* hideInMenu: (false) 设为true后在左侧菜单不会显示该页面选项
912
* notCache: (false) 设为true后页面不会缓存
1013
* access: (null) 可访问该页面的权限数组,当前路由设置的权限会影响子路由

0 commit comments

Comments
 (0)