1. 程式人生 > >vue history 刷新出現404

vue history 刷新出現404

解決方式 2步(第一步網上很多)

1.修改nginx 檔案(檢視下面連結,就是新增下面的配置資訊)

https://www.cnblogs.com/kevingrace/p/6126762.html

https://www.cnblogs.com/guazi/p/6792097.html

https://segmentfault.com/q/1010000007974976?_ea=1511045

 location / {
             try_files $uri $uri/ @router;
             index index.html;
         }
2.如果改了還沒用,那就是專案的問題

開啟/config/index.js