bwcx_jzy 95c4bcc802 commit release 2.11.12 5 months ago
..
.vscode 85904ba625 全面切换升级 vue3 1 year ago
bin a2f5466e7d i18n jpom-i18n@1.0.10 1 year ago
public 85904ba625 全面切换升级 vue3 1 year ago
src 511196efa2 feat(i18n): 更新基础镜像支持列表并调整默认镜像 5 months ago
.editorconfig 5dc03743ae fix header 1 year ago
.env 0ec436d6e7 ⏸ segment(all): pre i18n 1 year ago
.env.dev c5a18deffb i18n: pages/user 1 year ago
.env.loc 85904ba625 全面切换升级 vue3 1 year ago
.env.production 85904ba625 全面切换升级 vue3 1 year ago
.eslintignore 85904ba625 全面切换升级 vue3 1 year ago
.eslintrc-auto-import.json f6ead06b2e 解决eslint 不生效,优化eslint配置及依赖 1 year ago
.eslintrc-global-import.json 37299e0716 不分eslint error解决 1 year ago
.eslintrc.json eae489e2e5 i18n: pages/docker 1 year ago
.gitignore 0094ed1726 add 增加 i18n 命令 1 year ago
.prettierignore 85904ba625 全面切换升级 vue3 1 year ago
.prettierrc.json d81c289f81 fix: eclint配置修改,解决换行错误 1 year ago
README.md dc708c8a49 fix web i18n 1 year ago
i18n_tools.config.js d494c0532b style 优化注释 10 months ago
index.html 539a563546 🔨 perf(i18n): 前端默认语言跟随后端配置 1 year ago
package.json 95c4bcc802 commit release 2.11.12 5 months ago
tsconfig.json 85904ba625 全面切换升级 vue3 1 year ago
tsconfig.node.json 85904ba625 全面切换升级 vue3 1 year ago
type.d.ts 5dc03743ae fix header 1 year ago
vite.config.ts aadf6d4b42 去除vite.config.ts中不存在属性viteNext 1 year ago

README.md

项目介绍

本项目采用 Vue3 + Vite + TypeScript + Antdv + Pinia构建。

项目采用 Vue 3 <script setup> SFC 写法,请查看script setup docs了解更多信息。

构建运行

pnpm dev # 本地运行
pnpm build # 打包

参与贡献

环境准备

Node.js 和 pnpm

开发需要 Node.js 18+ 和 pnpm v8。

推荐使用 nvm 管理 Node.js,避免权限问题的同时,还能够随时切换当前使用的 Node.js 的版本。在 Windows 系统下的开发者可以使用 nvm-windows

推荐使用pnpm,节约内存。 在 pnpm官网选择一种方式安装即可。

编辑器

这边我们推荐使用 VSCode, 我们我们尽量采用工具化方式来约束开发规范和编码风格, 使用 VSCode 即可应用现有配置和推荐您安装适合项目的插件。 具体配置看/.vscode 目录

⚠️:因为我们在升级 vue3 的过程中 vue2 版本也在不断迭代, 为了确保我们始终是在最新的代码基础上开发,编写某个页面前记得先从web-vue 目录中找到同名文件先替换下。

目录结构

.
├── .vscode
│   └── setting.json
├── dist
├── mock
│   └── app.ts|tsx
├── src
│   ├── components # 公共组件
│   ├── assets # 静态资源
│   ├── interface # 类型定义
│   ├── router # 路由配置
│   ├── stores # 状态管理器
│   │   └── index.ts
│   ├── pages # 页面
│   │   ├── login
│   │   └── user
│   ├── utils # 工具文件
│   │   └── index.ts
│   ├── api # 接口文件
│   │   └── api.ts
│   ├── app.vue
│   ├── main.ts
├── node_modules
├── .env
├── eslint.json
├── vite.config.ts // vite配置
├── package.json
├── tsconfig.json
└── type.d.ts

检查依赖版本

npm install -g npm-check-updates

ncu

安装 nvm

https://gitee.com/RubyMetric/nvm-cn

bash -c "$(curl -fsSL https://gitee.com/RubyMetric/nvm-cn/raw/main/install.sh)"

i18n

_#_ => \"

_##_ => \"