vitjs / vit

🚀 React application framework inspired by UmiJS / 类 UmiJS 的 React 应用框架
MIT License
100 stars 7 forks source link

路由认证怎么版? #8

Closed InfernalAzazel closed 2 years ago

InfernalAzazel commented 2 years ago

没看到有例子

yunsii commented 2 years ago

已经有这么高级的需求了吗?因为是基于 Umi 的路由渲染,可以通过 wrappers 的路由配置实现,源码部分:https://github.com/vitjs/vit/blob/master/packages/runtime/src/renderRoutes/index.tsx#L55

yunsii commented 2 years ago

Close as stale.