diff --git a/docs/src/guide/essentials/route.md b/docs/src/guide/essentials/route.md index d8a938dda..985c48a9b 100644 --- a/docs/src/guide/essentials/route.md +++ b/docs/src/guide/essentials/route.md @@ -339,6 +339,10 @@ interface RouteMeta { | 'success' | 'warning' | string; + /** + * 路由的完整路径作为key(默认true) + */ + fullPathKey?: boolean; /** * 当前路由的子级在菜单中不展现 * @default false @@ -502,6 +506,13 @@ interface RouteMeta { 用于配置页面的徽标颜色。 +### fullPathKey + +- 类型:`boolean` +- 默认值:`true` + +是否将路由的完整路径作为tab key(默认true) + ### activePath - 类型:`string` @@ -602,3 +613,32 @@ const { refresh } = useRefresh(); refresh(); ``` + +## 标签页与路由控制 + +在某些场景下,需要单个路由打开多个标签页,或者修改路由的query不打开新的标签页 + +每个标签页Tab使用唯一的key标识,设置Tab key有三种方式,优先级由高到低: + +- 使用路由query参数pageKey + +```vue +