Vue3 switches the route and the page content is displayed after the white screen is refreshed.

problem lies in:

1. First check whether the page routing and page path configuration are configured incorrectly.

2. If the page can be refreshed, it proves that it is not a configuration problem. Secondly, check whether the largest div box wrapping content is included in the outermost layer of the root component tag. ( Generally vue3 can be wrapped without using div box )

3. In the end, if you find that there are no problems with the above, then the problem lies here. Check whether there are comments directly under the template tag. If necessary, write the comments into the div. ( This is the problem that causes the white screen )

Modify as follows to solve the problem:

Guess you like

Origin blog.csdn.net/weixin_53339757/article/details/133501173