generally, react and vue projects will be configured with routing. The home page is usually / main
, that is, visit http://www.xx.com/-sharp/main
to visit the home page, but the actual project requires that the content of the home page be displayed when visiting http://www.xx.com
. If the root directory is also processed in the project, jump to / main
, but the address bar is also changed
how to deal with this kind of problem?