How to get another page object in a page? #228
-
E.g.: Just expect I am under path The provided I have no idea to get a page key from a path ( I am not finding any related api exported). Update: Shall I hash the path myself? I think we should better provide an api. @meteorlxy As I won't find any pages if users are using premallinks. Why I need this.This need is required for me to provide similar features like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
The BTW, |
Beta Was this translation helpful? Give feedback.
The
key
is the name property of vue-router. Try using this to get the routes: https://next.router.vuejs.org/api/#getroutesBTW,
usePagesData
is also an undocumented API