Vue3 configuration routing error Catch all routes (“*”) must now be defined using a param with a custom regexp.

 When the vue3 project specifies an unrecognized path to automatically jump to the 404 page when configuring the route, it reports an error Catch all routes ("*") must now be defined using a param with a custom regexp. It means that all routes ("") must now be
captured Use parameters with custom regular expressions to define

solution

Change to the following configuration:

 

Guess you like

Origin blog.csdn.net/qq_51402804/article/details/129424997