How to make the home page of the react/vue project show only the domain name?

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?

Apr.03,2021

configure in router to change the component corresponding to / to main


ide/essentials/redirect-and-alias.html-sharp%E9%87%8D%E5%AE%9A%E5%90%91" rel=" nofollow noreferrer "> https://router.vuejs.org/zh/g.

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea9841-47d37.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea9841-47d37.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?