import VueRouter from "vue-router"; const routes = [ { path: "/", name: "home", component: () => import("./pages/home/home.vue") }, { path: "/home", name: "home", component: () => import("./pages/home/home.vue"), }, { path: "/server", name: "server", component: () => import("./pages/server/server.vue"), }, { path: "/order", name: "order", component: () => import("./pages/order/order.vue"), }, { path: "/service", name: "service", component: () => import("./pages/service/service.vue"), }, { path: "/task", name: "task", component: () => import("./pages/task/task.vue"), }, { path: "/about", name: "about", component: () => import("./pages/about/about.vue"), }, { path: "/result", name: "result", component: () => import("./pages/result/result.vue"), }, { path: "/userInfo", name: "userInfo", component: () => import("./pages/userInfo/userInfo.vue"), }, { path: "/blogDetails", name: "blogDetails", component: () => import("./pages/blogDetails/blogDetails.vue"), }, { path: "/admin", name: "admin", component: () => import("./pages/admin/admin.vue"), children: [ { path: "", name: "info", component: () => import("./pages/admin/children/info/info.vue"), }, { path: "info", name: "info", component: () => import("./pages/admin/children/info/info.vue"), }, { path: "blog", name: "blog", component: () => import("./pages/admin/children/blog/blog.vue"), }, { path: "blogs", name: "blogs", component: () => import("./pages/admin/children/blogs/blogs.vue"), }, { path: "tags", name: "tags", component: () => import("./pages/admin/children/tags/tags.vue"), }, { path: "comments", name: "comments", component: () => import("./pages/admin/children/comments/comments.vue"), }, ], }, ]; const router = new VueRouter({ routes, // short for `routes: routes` }); export default router;