uniapp+thinkphp history模式刷新404 在宝塔伪静态里面配置 location / { try_files $uri $uri/ /index.html; } location /addons/ { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } }