Remove the-sharp number from vue and refresh the problem of jumping back to the home page.

used vue-router,
and then saw that the-sharp number was a little uncomfortable,
removed the-sharp number (mode: "history"), and then
was even more uncomfortable, because I ctrl+r refreshed and jumped back to the home page under a route that was not the home page.

at this moment. I"m confused.

solve!
online search needs back-end support. What kind of support is it? my side is the operation and maintenance staff in charge of the server. What do you need him to configure on the server?
if you know, please let me know! Also hope to tell the specific solution! Thank you very much!

Apr.22,2021

document contains
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 "> HTML5 History mode


mode: 'history',


HTML5's new history API allows you to change the address bar without refresh, and with AJAX, you can jump without refresh.

To put it simply: assume that the current page is renfei.org/, then execute the following JavaScript statement:

window.history.pushState (null, null, "/ profile/");

After

, the address of the address bar becomes renfei.org/profile/, but at the same time the browser does not refresh the page or even detect the existence of the target page.

if your backend is not configured, it will go to renfei.org/profile/index.html (depending on the server configuration), or 404. If it does not exist. Therefore, server configuration is needed here. Renfei.org/ * / all returns enfei.org/index.html so that it won't be 404.

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