easy-temps / vue3-vant-mobile

An mobile web apps template based on the Vue 3 ecosystem。一个基于 Vue 3 生态系统的移动 web 应用模板,帮助你快速完成业务开发。
https://vue3-vant-mobile.netlify.app
MIT License
1.1k stars 219 forks source link

[feature] 新建页面后不需要重新构建 #105

Closed xyy94813 closed 3 months ago

xyy94813 commented 3 months ago

Test Case:

  1. npm run dev
  2. pages 目录下新增页面
  3. 点击按钮跳转至新页面路径 ,此时404 目前 pages 下面新建页面,增加路又跳转会404

重新构建后页面会生效

CharleeWa commented 3 months ago

@xyy94813 感谢反馈!一般创建新页面,不需要重新启动,但我不知道什么原因。我今天新建了一个干净的模板,unplugin-vue-router 可以工作,新的页面不需要重新启动。目前,我还没有找到与此问题关联的原因。你可以暂时重启项目解决,我再找找问题,不过需要些时间。

xyy94813 commented 3 months ago

能否帮忙提供些相关信息,以便我排查和验证问题?

例如 实现该功能的库有? win和mac 下是否存在差异点?

CharleeWa commented 3 months ago

相关的库有两个:unplugin-vue-routervue-router,不否定其它基础库,比如 Vite 或者 Vue 对热更新的影响。

CharleeWa commented 3 months ago

升级到最新版本就可以了!