1、如需去掉 # 在Nginx 配置中添加 (不需要去掉 改成 mode:“hash”)
location / {
try_files $uri $uri/ @router;
index index.html;
}
location @router {
rewrite ^.*$ /index.html last;
}
2、在宝塔中配置Nginx
1、如需去掉 # 在Nginx 配置中添加 (不需要去掉 改成 mode:“hash”)
location / {
try_files $uri $uri/ @router;
index index.html;
}
location @router {
rewrite ^.*$ /index.html last;
}
2、在宝塔中配置Nginx