时间:2021-07-01 10:21:17 帮助过:8人阅读
vue打包项目后刷新404的问题Nginx配置
server {
listen 80;
server_name localhost;
index index.html;
root /root/dist;
location / {
root /root/dist;
try_files $uri $uri/ /index.html =404;
}
}上面是我整理给大家的,希望今后会对大家有帮助。
相关文章:
vue.js 嵌套循环、if判断、动态删除的实例
Vue.js+Layer表格数据绑定与实现更新的实例
vue2.0 computed 计算list循环后累加值的实例
以上就是在使用vue中打包项目后刷新碰到404的问题(详细教程)的详细内容,更多请关注Gxl网其它相关文章!