或者用# 模式的路由,或者修改nginx 里的配置
nginx.conf
location / {
root html;
index index.html index.htm;
try_files $uri $uri/ @router;
}
location @router {
rewrite ^.*$ /index.html last;
}
或者用# 模式的路由,或者修改nginx 里的配置
nginx.conf
location / {
root html;
index index.html index.htm;
try_files $uri $uri/ @router;
}
location @router {
rewrite ^.*$ /index.html last;
}