Fe-interview: [vue] 分析下vue项目本地开发完成后部署到服务器后报404是什么原因呢?

Created on 22 Jun 2019  ·  2Comments  ·  Source: haizlin/fe-interview

[vue] 分析下vue项目本地开发完成后部署到服务器后报404是什么原因呢?

vue

Most helpful comment

使用了history模式,而后端又没有进行相关资源配置。

All 2 comments

1.检查nginx配置,是否正确设置了资源映射条件;
2.检查vue.config.js中是否配置了publicPath,若有则检查是否和项目资源文件在服务器摆放位置一致。

使用了history模式,而后端又没有进行相关资源配置。

Was this page helpful?
0 / 5 - 0 ratings