Nuxt 爬坑之路:
由于路由文件命名不规范,例如 我的文件是
当我打包之后 运行 跳转到news_center路径
如:http://127.0.0.1:8080/news_center
页面正常显示,但是刷新页面之后报
将news_center改名为newsCenter,改为驼峰,打包之后再运行,再次刷新页面,页面不报错,查看源代码,正常渲染。
Nuxt 爬坑之路:
由于路由文件命名不规范,例如 我的文件是
当我打包之后 运行 跳转到news_center路径
如:http://127.0.0.1:8080/news_center
页面正常显示,但是刷新页面之后报
将news_center改名为newsCenter,改为驼峰,打包之后再运行,再次刷新页面,页面不报错,查看源代码,正常渲染。