umi3.x版本,如果走的是约定式路由如何做路由个性化 #12106
Unanswered
yangliguo7
asked this question in
Q&A
Replies: 1 comment 5 replies
-
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
umi 3.x版本,项目做的是约定式路由。比方说项目内src/pages/testRouter/test/index.tsx,访问地址是 http://xxx/testRouter/test.
现在有一个这样的变更。
所有的文件名称都要变成src/pages/test-router/test/index.tsx。这种格式。相对访问路由也变成了 http://xxx/test-router/test
我的问题是,做这种文件名称的改动,如何兼容之前的路由呢。即即使我文件名称是test-router/test/index.tsx,但我想访问页面的时候依然是testRouter/test
Beta Was this translation helpful? Give feedback.
All reactions