59 lines
1.4 KiB
TypeScript
59 lines
1.4 KiB
TypeScript
import { createRouter, createWebHashHistory } from "vue-router";
|
|
|
|
const router = createRouter({
|
|
history: createWebHashHistory(),
|
|
routes: [
|
|
{
|
|
path: "/",
|
|
name: "index",
|
|
component: () => import("@/views/index/index.vue"),
|
|
},
|
|
{
|
|
path: "/index",
|
|
redirect: "/",
|
|
},
|
|
{
|
|
path: "/siteInformation",
|
|
name: "siteInformation",
|
|
component: () => import("@/views/siteInformation/index.vue"),
|
|
},
|
|
{
|
|
path: "/technicalArticles",
|
|
name: "technicalArticles",
|
|
component: () => import("@/views/technicalArticles/index.vue"),
|
|
},
|
|
{
|
|
path: "/officeResources",
|
|
name: "officeResources",
|
|
component: () => import("@/views/officeResources/index.vue"),
|
|
},
|
|
{
|
|
path: "/downloadPrograms",
|
|
name: "downloadPrograms",
|
|
component: () => import("@/views/downloadPrograms/index.vue"),
|
|
},
|
|
{
|
|
path: "/article",
|
|
name: "articleDetail",
|
|
component: () => import("@/views/components/detail_article.vue"),
|
|
},
|
|
{
|
|
path: "/resource",
|
|
name: "resourceDetail",
|
|
component: () => import("@/views/components/detail_resource.vue"),
|
|
},
|
|
{
|
|
path: "/downloadGames",
|
|
name: "downloadGames",
|
|
component: () => import("@/views/downloadGames/index.vue"),
|
|
},
|
|
{
|
|
path: "/search",
|
|
name: "search",
|
|
component: () => import("@/views/components/search.vue"),
|
|
},
|
|
],
|
|
});
|
|
|
|
export default router;
|