feat: add index page

This commit is contained in:
RockYang
2024-04-10 18:23:55 +08:00
parent 1e9c5adb0a
commit 3a23ff6b42
5 changed files with 166 additions and 4 deletions

View File

@@ -2,8 +2,14 @@ import {createRouter, createWebHistory} from "vue-router";
const routes = [
{
name: 'home',
name: 'Index',
path: '/',
meta: {title: process.env.VUE_APP_TITLE},
component: () => import('@/views/Index.vue'),
},
{
name: 'home',
path: '/home',
redirect: '/chat',
meta: {title: '首页'},
component: () => import('@/views/Home.vue'),