未验证 提交 dd26c7cf 编写于 作者: B Binwei Fang 提交者: GitHub

fix($core): decode regularPath when generate router config (fix #1946) (#1947)

上级 94a7de45
......@@ -65,10 +65,12 @@ function routesCode (pages) {
}`
}
if (regularPath !== pagePath) {
const decodedRegularPath = decodeURIComponent(regularPath)
if (decodedRegularPath !== pagePath) {
code += `,
{
path: ${JSON.stringify(regularPath)},
path: ${JSON.stringify(decodedRegularPath)},
redirect: ${JSON.stringify(pagePath)}
}`
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册