123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- 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;
|