API 文档 / RouteLocationResolvedGeneric
接口: RouteLocationResolvedGeneric
没有提供 RouteMap 时使用的 RouteLocationResolved 的泛型版本。
层次结构
↳
RouteLocationResolvedGeneric
属性
fullPath
• fullPath: string
包含 search 和 hash 的完整位置。此字符串是百分比编码的。
继承自
hash
• hash: string
当前位置的哈希值。如果存在,则以 # 开头。
继承自
href
• href: string
将设置在 <a href="..."> 上的路由位置的解析 href。
matched
• matched: RouteRecordNormalized[]
包含组件的 RouteRecord 数组,这些组件是在添加记录时传递的。它还可以包含重定向记录。这不能直接使用。此属性不可枚举。
继承自
meta
• meta: RouteMeta
合并了所有匹配路由记录的 meta 属性。
继承自
name
• name: null | RouteRecordNameGeneric
匹配记录的名称
继承自
params
• params: RouteParamsGeneric
从 path 中提取的解码参数对象。
继承自
path
• path: string
URL 的百分比编码路径名部分。
继承自
query
• query: LocationQuery
当前位置的 search 属性的对象表示。
继承自
redirectedFrom
• redirectedFrom: undefined | RouteLocationGeneric
包含我们在最终到达当前位置之前尝试访问的初始位置。