d3george / slash-admin

A modern react admin. It is based on react 18, vite and TypeScript. It's fast !
https://admin.slashspaces.com/
MIT License
1.49k stars 218 forks source link

使用动态路由后,是不是就不需要在routes下定义静态路由? #25

Closed nianhua99 closed 7 months ago

nianhua99 commented 7 months ago

RT,路由的定义都由后端传过来是吗

d3george commented 7 months ago

https://github.com/d3george/slash-admin/blob/bbf013e0d45f9f5c9459ac1869d984462809b5da/src/_mock/_user.js#L27 权限数据是mock后端返回的,会根据这份mock的权限数据转换成路由配置

nianhua99 commented 7 months ago

了解了!