After the vuecli webpack project is packaged, the server is running normally, and the resources cannot be found after the route is redirected to refresh.

have you ever encountered a packaged static file uploaded to the server and accessed normally for the first time, but it is also normal for the route to jump to other pages, that is, it stays on other routing pages, and F5 refresh cannot be found directly? I checked this. We need to configure the service at the back end, do we have a way to deal with it? Vue"s project, which has been encountered in angular before, was finally solved by the backend. Now I don"t know about vue. Find the solution

Jun.30,2022

the route is converted to hash mode, or the server is configured for forwarding.

ide/essentials/history-mode.html" rel=" nofollow noreferrer "> https://router.vuejs.org/zh/g...

Menu