【vue-router】missing param for named route ‘search‘: Expected ‘keyword‘ to be defined


 

 The previous article is to delete the keyword in the path,

 

But the search module of the Header component needs to use the keyword

Therefore, it is necessary to solve the problem of quoting keywords without introducing mistakes. When I return to the video later and watch the barrage, it turns out that there is a question mark missing after the keyword.

 

It took me 2 hours to find this, had to document it (crying)

 

 

Guess you like

Origin blog.csdn.net/qq_56079640/article/details/129167540