Vue-router dynamic routing. Adding pages in the background needs to be refreshed before it can be used normally.

  1. except for the basic login and the home page, everything else is obtained from the background and added with addRouter.
  2. now there is a problem. I added a routing information to the database, and I logged in again on the page. I also got the list of newly added routing information and added it to the sidebar normally, but it did not jump normally when I clicked. Instead, it directly triggered 404. It needs to be refreshed and then clicked to jump normally.
Apr.29,2022

it is very likely that your 404 page routing rule is in front of your Singapore route, resulting in a 404 departure when parsing the routing rule. You can try to disable the 404 routing rule first and see if you can jump directly to the last part of the route


so that this problem will not occur.

Menu