Nuxt 打包之后 路由跳转 刷新页面 报Cannot GET / ...

Nuxt 爬坑之路:

    由于路由文件命名不规范,例如 我的文件是  


当我打包之后 运行   跳转到news_center路径

如:http://127.0.0.1:8080/news_center

页面正常显示,但是刷新页面之后报



将news_center改名为newsCenter,改为驼峰,打包之后再运行,再次刷新页面,页面不报错,查看源代码,正常渲染。

猜你喜欢

转载自blog.csdn.net/u012302552/article/details/80234783