feat: 初始化前端项目基础架构
- 添加路由配置和基础页面组件 - 配置环境变量和全局类型定义 - 实现Pinia状态管理和axios封装 - 添加基础布局组件和全局头部 - 配置Vite构建工具和开发环境
This commit is contained in:
8
src/router/index.ts
Normal file
8
src/router/index.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type {RouteRecordRaw} from "vue-router";
|
||||
import HomeView from "../views/HomeView.vue";
|
||||
import AboutView from "../views/AboutView.vue";
|
||||
|
||||
export const routes: Array<RouteRecordRaw> = [
|
||||
{path: "/home", name: "HomeView", component: HomeView},
|
||||
{path: "/about", name: "AboutView", component: AboutView},
|
||||
];
|
||||
Reference in New Issue
Block a user