//在vue2中,捕获404路径的写法是:
{
path: "*",
name: "NotFound",
component: () => import("@/views/common/not-found/NotFound.vue"),
}
//而在vue3中,改为了以下写法:
{
path: "/:pathMatch(.*)",
name: "NotFound",
component: () => import("@/views/common/not-found/NotFound.vue"),
}