After Vue sets the route, the page still does not appear blank

problem phenomenon

After setting the route, the page of the newly added page is still blank without any error.

Problem Cause and Solution

The occurrence of this problem can only indicate that the path or configuration is wrongly written.
Step 1: Check the configuration: the routes in router/index.js should not be written as routers, that is, one r is missing.
insert image description here
Step 2: Check whether the page path is wrongly written. My name is @/page/login, so it can’t be written as @/src/page/login
insert image description here
@/router and don’t write it wrong
insert image description here

to reflect

Recently, there have been a lot of errors due to uppercase and lowercase letters, so you must pay attention to external configuration or api. At the same time, it is necessary to record the daily errors, because the previous errors have been solved, and now the same error is reported and I forget how to correct it, which is a waste of time.

Guess you like

Origin blog.csdn.net/qq_43840793/article/details/123865241