官方解决方案
https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations
一般建议使用第二个。
nginx
location / {
try_files $uri $uri/ /index.html;
}
官方解决方案
https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations
一般建议使用第二个。
nginx
location / {
try_files $uri $uri/ /index.html;
}