[Vuejs]-Vuepress dynamic routes and render as page?

0👍

I’m still new to Vuepress, but I come across this comment in the source code that might be able to help you.

When Vue SFCs are source files, make them as layout components directly

I haven’t finished reading all source code, so I’m not very sure I understand it correctly. But I guess when Vuepress find a vue component, it will not render it like a markdown file. It assumes you have your own style inside the .vue file. So I think that may be why you are missing what normal markdown page has.

However, if you need to mix a dynamic data source with static pages, you can try to use Vue in markdown to get what you want to achieve.

Leave a comment