We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
本项目是基于文件路由的。 那么如果某些路由需要携带重要的 meta 信息(权限),标准做法是什么? 是 vite-plugin-pages插件的 extendRoute ? 还是重写路由文件?
The text was updated successfully, but these errors were encountered:
<route lang="yaml"> meta: title: 首页 isMenu: true icon: mdi:home role: [admin] </route>
我是这样写的,之后可以在页面里拿到这个meta信息。 具体可以参考一下我基于这个项目开发的一个简单的admin框架 https://github.com/hedongshu/vitesse-with-naive
Sorry, something went wrong.
感谢解答!Thanks♪(・ω・)ノ
@WT-SML 靓仔你好,具体用法也可见 vite-plugin-pages
markthree
No branches or pull requests
本项目是基于文件路由的。
那么如果某些路由需要携带重要的 meta 信息(权限),标准做法是什么?
是 vite-plugin-pages插件的 extendRoute ?
还是重写路由文件?
The text was updated successfully, but these errors were encountered: