# vite-element-plus-admin **Repository Path**: stairheaven_admin/vite-element-plus-admin ## Basic Information - **Project Name**: vite-element-plus-admin - **Description**: vite-element-plus-admin - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 16 - **Created**: 2021-07-09 - **Last Updated**: 2022-06-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 简介 Vite Element Admin 是一个免费开源的中后台模版。使用了最新的`vue3`,`vite2`等主流技术开发,开箱即用的中后台前端解决方案,也可用于学习参考。 ## 特性 - **最新技术栈**:使用 Vue3/vite2 等前端前沿技术开发 - **Mock 数据** 内置 Mock 数据方案 - **权限** 内置完善的动态路由权限生成方案 - **组件** 二次封装了多个常用的组件 ## 预览 - [vite-element-admin](https://mvpyb.github.io/vite-element-plus-admin/dist/) - 完整版预览 - [vite-element-admin-pages](https://github.com/mvpyb/vite-element-plus-admin) - 完整版 github 站点 测试账号: 随便填 测试密码: 随便填 ## 准备 - [Vite](https://cn.vitejs.dev/) - vite 特性 - [Vue3](https://v3.cn.vuejs.org/) - Vue3 基础语法 - [Vue-Router-Next](https://next.router.vuejs.org/zh/index.html) - vue-router 4.x 文档 - [Element-Plus-Vue](https://element-plus.gitee.io/#/zh-CN/component/installation) - Element UI组件 - [Mock.js](https://github.com/nuysoft/Mock) - mockjs 基本语法 ## 目录结构 ``` ├── mock // Mock相关   ├── src // 源代码 │   ├── api // 请求相关文件 │   ├── constant.js // 全局变量 │   ├── assets // 静态资源 │   ├── components // 全局公用组件 │   ├── directive // 全局指令 │   ├── icons // svg资源 │   ├── layout // layout │   ├── plugins // plugins │   ├── router // 路由 │   ├── store // 全局 store管理 │   ├── styles // 全局样式 │   ├── utils // 工具函数 │   ├── vendor // 公用vendor │   ├── views // 页面集合 │  │ ├── login // 登录 │   ├── App.vue // 入口页面 │   ├── main.js // 入口 加载组件 初始化等 │ └── permission.js // 权限管理 ├── .gitignore // git 忽略项 ├── favicon.ico // favicon图标 ├── index.html // html模板 └── package.json // package.json ``` ## 开发 ```bash # 克隆项目 git clone https://github.com/mvpyb/vite-element-plus-admin.git # 进入项目目录 cd vite-element-plus-admin # 安装依赖 npm install # 建议不要用 cnpm 安装 会有各种诡异的bug 可以通过如下操作解决 npm 下载速度慢的问题 npm install --registry=https://registry.npm.taobao.org # 启动服务 npm run dev ``` ## 发布 ```bash # 构建生产环境 npm run build:pro ```