Nginx部署Vue项目以及解决刷新页面404问题
在宝塔面板站点中增加相应配置:

location / { try_files $uri $uri/ @router; index index.html; } location @router { rewrite ^.*$ /index.html last; }
在宝塔面板站点中增加相应配置:

location / { try_files $uri $uri/ @router; index index.html; } location @router { rewrite ^.*$ /index.html last; }