import { createRouter, createWebHistory } from "vue-router";

export default createRouter({
	history: createWebHistory("/"),
	routes: [
		{
			path: "/",
			name: "Index",
			component: () => import("@/layout/IndexLayout.vue"),
			children: [
				{
					path: "/",
					name: "ArticleIndex",
					component: () => import("@/views/ArticleIndex.vue")
				},
				{
					path: "/aid:id.html",
					name: "ArticleDetail",
					component: () => import("@/views/ArticleDetail.vue")
				},
				{
					path: "/about",
					name: "About",
					component: () => import("@/views/ArticleDetail.vue")
				}
			]
		}
	]
});
