router-link can jump, but router-view does not render the page

make a stupid mistake

Error: After adding the router-view tag, the page is still not rendered and the page content is not displayed

I searched on the Internet and tried many different methods. Many people did not render because routes were written as routers, but they had no problem. After checking the route, checking the introduction of routes and other aspects, they finally found that the English word of the component was written wrong. up

Wrong way:

Correct spelling:

 It is not the first time that the word component has been written incorrectly, record the error and remind yourself

Guess you like

Origin blog.csdn.net/weixin_45612718/article/details/124988505