让后端修改nginx的配置文件
server {
listen 8080;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
try_files $uri $uri/ /index.html;#必须要有的
root /home/dist/;#打包后的项目路径,index.html所在文件夹
index index.html index.htm;
}
}