首先:将对应的打包文件放到网站配置的目录下;

宝塔配置指向对应的文件目录,重启nginx

原因是需要配置伪静态:

location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.html last; break;
}
}