Vue 哈希模式路由 伪静态规则
30
2023-04-10
# 为 Vue 项目添加的 location 规则
location / {
try_files $uri $uri/ @router;
}
location @router {
rewrite ^.*$ /index.html last;
}
# Vue 项目的 location 规则结束
- 0
- 0
-
分享