Closed yixiaojiu closed 9 months ago
It's always better to take advantage of the vue router's existing features. We can align the api as much as possible.
We can get all markdown frontmatter in extendRoute
.
Refer here:
Ok, thank you for your answer.
Clear and concise description of the problem
related pr https://github.com/YunYouJun/valaxy/pull/314
Suggested solution
Since VueRouter can configure redirection in
RouteRecordRaw
, I want to push redirection rules in this variable. https://github.com/YunYouJun/valaxy/blob/df2c16f1cf38e04fdda30b35f2534cf2d64379fa/packages/valaxy/client/main.ts#L4Redirect configuration may have a broken change. How about this?
For configure redirection in frontmatter, is there any way to get all markdowns' frontmatter while resolving options? If not, how about add a functions to do that. https://github.com/YunYouJun/valaxy/blob/df2c16f1cf38e04fdda30b35f2534cf2d64379fa/packages/valaxy/node/options.ts#L163-L164
Alternative
No response
Additional context
No response
Validations