https://github.com/asasugar/vite-element-plus-admin
🔥 Vue 3.0 + Vite 2.0 + Pinia 2.0 + Vue-Router 4.0 + Element-Plus + Axios 开发的后台管理系统
https://github.com/asasugar/vite-element-plus-admin
admin axios element-plus javascript less pinia typescript vite2 vue vue-admin vue-router4 vue3 vue3-typescript
Last synced: 3 months ago
JSON representation
🔥 Vue 3.0 + Vite 2.0 + Pinia 2.0 + Vue-Router 4.0 + Element-Plus + Axios 开发的后台管理系统
- Host: GitHub
- URL: https://github.com/asasugar/vite-element-plus-admin
- Owner: asasugar
- Created: 2022-01-17T07:11:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-13T08:47:49.000Z (over 1 year ago)
- Last Synced: 2025-04-11T19:23:11.417Z (about 1 year ago)
- Topics: admin, axios, element-plus, javascript, less, pinia, typescript, vite2, vue, vue-admin, vue-router4, vue3, vue3-typescript
- Language: TypeScript
- Homepage:
- Size: 4.2 MB
- Stars: 14
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# vite-element-plus-admin
🔥 🎉 Vue 3.0 + Vite 2.0 + Pinia 2.0 + Vue-Router 4.0 + Element-Plus + Axios 开发的后台管理系统
# 静态站点
[Github Pages](https://asasugar.github.io/vite-element-plus-admin/)
# 环境配置
- Vite 需要 Node.js 版本 >= 12.2.0。
- 推荐 `vscode` + `volar` , 禁用 `vuter`
# Run Project
## 安装依赖
```bish
pnpm install
```
## 添加 husky hooks
```bish
Add a hook:
npx husky add .husky/pre-commit "pnpm lint-staged"
git add .husky/pre-commit
```
## 运行
```bish
pnpm dev
```
该版本的 Vuex 在 setup 中使用 map\*辅助函数,用法,详见[#issues1725](https://github.com/vuejs/vuex/issues/1725)
辅助函数`已经提取成npm包`[npm 地址](https://www.npmjs.com/package/vuex-composition-maphooks), 文档详看[github 地址](https://github.com/asasugar/vuex-composition-maphooks),**推荐使用[pinia](https://github.com/vuejs/pinia#readme)(真香)**
# 部分页面效果










# 特别感谢
- vue@3
- vite@3
- pinia@^2.0.13
- vue-router@4
- element-plus@2
- vue-vben-admin(UI 参考)
不定时使用 npm-check-updates 更新最新依赖
# 注意事项
- `Node` 版本 >= 12.2.0
- `vite@2.9.0` 之前的版本,dev 模式下识别到新的依赖会`reload page`, 可结合[vite-plugin-optimize-persist](https://github.com/antfu/vite-plugin-optimize-persist)插件解决,>= 2.9.0 的不需要!
- Vue 3 版本状态管理推荐使用 `pinia`,api 友好许多, 非要用的话结合 [vuex-composition-maphooks](https://www.npmjs.com/package/vuex-composition-maphooks)