feat: 初始化Vue3项目并添加基础功能
添加Pinia状态管理、Vue Router路由、Element Plus UI组件库和Axios请求库 配置Vite别名和TS路径映射 实现用户登录、路由守卫和请求拦截功能 添加全局类型定义和工具函数
This commit is contained in:
19
src/views/HomeView.vue
Normal file
19
src/views/HomeView.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
|
||||
const message = ref('欢迎使用 Vue 项目模板')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="home">
|
||||
<h1>{{ message }}</h1>
|
||||
<el-button type="primary">Element Plus 按钮</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.home {
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user