southliu / react-admin

React、Typescript、Vite、Antd等技术开发中后台项目解决方案,支持keepalive功能,react-redux状态管理,UnoCSS,动态菜单,国际化i18n,虚拟滚动表格。

Home Page:https://southliu.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

导入路由模块用法求解

xiumubai opened this issue · comments

import routes from '~react-pages'

老哥,这个是怎么导入路由页面的,这个写法第一次见

commented

这是vite-plugin-pages插件提供的,具体看 https://www.npmjs.com/package/vite-plugin-pages 这里面有说。

好的,谢谢老哥,你的这个模版已经用在项目中了

commented

嗯嗯,欢迎提bug。