vue history模式 nginx配置
wap为history路径
location /wap {
try_files $uri $uri/ @router;
index index.html index.htm;
}
location @router {
rewrite ^.*$ /wap/index.html last;
}
wap为history路径
location /wap {
try_files $uri $uri/ @router;
index index.html index.htm;
}
location @router {
rewrite ^.*$ /wap/index.html last;
}