Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
haizhilin2013 opened this issue Jun 22, 2019 · 2 comments
Labels
vue vue

Comments

@haizhilin2013
Copy link
Collaborator

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

@haizhilin2013 haizhilin2013 added the vue vue label Jun 22, 2019
@xixileng
Copy link

xixileng commented Jul 1, 2019

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

@Silent-Jude
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vue vue
Projects
None yet
Development

No branches or pull requests

3 participants