# vite-vant-template **Repository Path**: bian_jian/vite-vant-template ## Basic Information - **Project Name**: vite-vant-template - **Description**: Vite Vant Template 是一个免费开源的移动端模版。使用了最新的`vue3`,`vite2`等主流技术开发,开箱即用的移动端解决方案,也可用于学习参考。 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 7 - **Created**: 2021-12-14 - **Last Updated**: 2021-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 简介 Vite Vant Template 是一个免费开源的移动端模版。使用了最新的`vue3`,`vite2`等主流技术开发,开箱即用的移动端解决方案,也可用于学习参考。 ## 特性 - **最新技术栈**:使用 Vue3/vite2 等前端前沿技术开发 - **Mock 数据** 内置 Mock 数据方案 ## 预览 - [没有梯子的可移步码云]( https://simmon_page.gitee.io/vite-vant-template/dist/ ) - 完整版预览 ( gitee ) - [vite-element-admin](https://mvpyb.github.io/vite-vant-template/dist/) - 完整版预览 ( github ) - [github](https://github.com/mvpyb/vite-vant-template) - 完整版github站点 - [码云](https://gitee.com/simmon_page/vite-vant-template) - 完整版码云站点 ## Vite Element Admin (vite + element plus 中后台模板) - [没有梯子的可移步码云](http://simmon_page.gitee.io/vite-element-plus-admin/) - 完整版预览 ( gitee ) - [vite-element-admin](https://mvpyb.github.io/vite-element-plus-admin/dist/) - 完整版预览 ( github ) - [github](https://github.com/mvpyb/vite-element-plus-admin) - 完整版github站点 - [码云](https://gitee.com/simmon_page/vite-element-plus-admin) - 完整版码云站点 测试账号: 随便填 测试密码: 随便填 ## 效果预览

PureAdmin Logo PureAdmin Logo PureAdmin Logo PureAdmin Logo PureAdmin Logo

## 准备 - [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 文档 - [Vant](https://vant-contrib.gitee.io/vant/v3/#/zh-CN) - Vant 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-vant-template.git # 进入项目目录 cd vite-vant-template # 安装依赖 npm install # 建议不要用 cnpm 安装 会有各种诡异的bug 可以通过如下操作解决 npm 下载速度慢的问题 npm install --registry=https://registry.npm.taobao.org # 启动服务 npm run dev ``` ## 发布 ```bash # 构建生产环境 npm run build:pro ```