When vue is deployed to tomcat, you can visit the home page of Jump Route to report 404 bosses [hold fists]

npm run dev

tomcat
but jump to the login page and report 404

Mar.25,2021

can you switch the route to a hash route and try again? That is, localhost:8080/-sharp/login


if the mode of vue-router is configured with history, The backend should also be configured accordingly: ide/essentials/history-mode.html-sharp%E5%90%8E%E7%AB%AF%E9%85%8D%E7%BD%AE%E4%BE%8B%E5%AD%90" rel=" nofollow noreferrer "> reference link


routes in history mode can only be accessed through route redirection, not by modifying url. Need to configure the backend server or change it to hash mode


Boss to find a solution

Menu