|
|
@ -5,10 +5,7 @@ server { |
|
|
|
root /var/www/html/; |
|
|
|
root /var/www/html/; |
|
|
|
index index.html index.htm; |
|
|
|
index index.html index.htm; |
|
|
|
# 解决Router(mode: 'history')模式下,刷新路由地址不能找到页面的问题 |
|
|
|
# 解决Router(mode: 'history')模式下,刷新路由地址不能找到页面的问题 |
|
|
|
if (!-e \$request_filename) { |
|
|
|
try_files $uri $uri/ /index.html; |
|
|
|
rewrite ^(.*)\$ /index.html?s=\$1 last; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
location /api/ { |
|
|
|
location /api/ { |
|
|
|