# vite-vant-template **Repository Path**: the-swing-shakes-the-wind/vite-vant-template ## Basic Information - **Project Name**: vite-vant-template - **Description**: Vite Vant Template 是一个免费开源的移动端模版。使用了最新的`vue3`,`vite2`等主流技术开发,开箱即用的移动端解决方案,也可用于学习参考。 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 7 - **Created**: 2025-06-26 - **Last Updated**: 2025-06-26 ## 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-vant-template](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) - 完整版码云站点 ## 其他项目 - JavaScript 版: [Vite-Element-Admin(Github)](https://github.com/mvpyb/vite-element-admin) - JavaScript 版: [Vite-Element-Admin(Gitee)](https://gitee.com/simmon_page/vite-element-admin-ts) --- - Typescript 版: [Vite-Element-Admin-ts(Github)](https://github.com/mvpyb/vite-element-admin-ts) - Typescript 版: [Vite-Element-Admin-ts(Gitee)](https://github.com/mvpyb/vite-element-admin-ts) --- - React 版: [React-Ant-Admin(Github)](https://github.com/mvpyb/react-ant-admin) - React 版: [React-Ant-Admin(Gitee)](https://gitee.com/simmon_page/react-antd-admin) --- - Nuxt Template: [Nuxt-Simple-Template(Github)](https://github.com/mvpyb/nuxt-simple-template) - 等3.x稳定了之后会同步增加3.x版本 - Nuxt Template: [Nuxt-Simple-Template(Gitee)](https://gitee.com/simmon_page/nuxt-simple-template) --- 测试账号: 随便填 测试密码: 随便填 ## 效果预览

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 ``` ## Donate 如果你觉得这个项目帮助到了你,你可以帮作者买一杯果汁表示鼓励 | 微信 | 支付宝 | | ------ | ------- | | [![](http://pic.yupoo.com/454539387/193bac45/70a463c6.png)](bitcoin:)
|[![](http://pic.yupoo.com/454539387/42d4b71d/2cb80871.png)](bitcoin:)
|