src/router/index.js @@ -69,7 +69,10 @@ }, { path: "*", redirect: "/404" component: () => import("@/views/error/404"), meta: { title: "404" } } ] // 导出路由 在 main.js 里使用