vite-plugin-mpa icon indicating copy to clipboard operation
vite-plugin-mpa copied to clipboard

多页面嵌套,开发路由怎么跳转不到

Open hzfvictory opened this issue 3 years ago • 1 comments

源码中 开发路由重定向:

list.push({
    from: new RegExp(`^/${pageName}/*`), // support pageName/{pages}
    to
  })

这样写法,把所有的嵌套的子级页面都给覆盖了,建议有嵌套的页面的一级路由禁止 ※

hzfvictory avatar Nov 29 '21 03:11 hzfvictory

我也找了半天才发现要这样才能访问:http://localhost:3000/src/pages/subpage/nested/index.html

hunteryun avatar Mar 18 '22 23:03 hunteryun