When the vue project is running, why does the address bar always have /-sharp?

1. Why do you open the home page and automatically add /-sharp to the address?
2. Is there any way not to show it? (for example, xxx.com/index)

May.02,2022

1. Using hash routing will bring -sharp
2. You can use history routing to solve this problem, but you need to support


on the server.

find the file initializing vue-router, and add mode: 'history',
as shown in the following figure

clipboard.png

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-1b3b19b-2babc.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-1b3b19b-2babc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?