From 477ea421a6ecd12645dd25b4d14fd1d67085f08f Mon Sep 17 00:00:00 2001 From: 白咕咕 <67865300+baimianxiao@users.noreply.github.com> Date: Tue, 7 Nov 2023 01:28:02 +0800 Subject: 倒计时组件 (#72) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 部署官网框架 * 部署官网框架 * 部署官网框架 * 修改标题 * 初步完成左侧倒计时组件 * favicon --------- Co-authored-by: 白咕咕 --- site/src/router/index.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 site/src/router/index.ts (limited to 'site/src/router') diff --git a/site/src/router/index.ts b/site/src/router/index.ts new file mode 100644 index 0000000..65353da --- /dev/null +++ b/site/src/router/index.ts @@ -0,0 +1,26 @@ +// Composables +import { createRouter, createWebHistory } from 'vue-router' + +const routes = [ + { + path: '/', + component: () => import('@/layouts/default/Default.vue'), + children: [ + { + path: '', + name: 'Home', + // route level code-splitting + // this generates a separate chunk (about.[hash].js) for this route + // which is lazy-loaded when the route is visited. + component: () => import(/* webpackChunkName: "home" */ '@/views/Home.vue'), + }, + ], + }, +] + +const router = createRouter({ + history: createWebHistory(process.env.BASE_URL), + routes, +}) + +export default router -- cgit v1.2.3-70-g09d2