vue2中可以使用*,在vue3中使用*会报错 需要换成这样,这种事vue-router4写法 { path: "/:catchAll(.*)", redirect: { name: "Page404" } }