Commit 6dcd80cd authored by 申中慧's avatar 申中慧

fix: 修改readme文件

parent e34d51e3
......@@ -22,3 +22,4 @@ dist-ssr
*.njsproj
*.sln
*.sw?
stats.html
......@@ -27,35 +27,25 @@
| ant-design 4.X | <https://ant.design/index-cn> | ui 组件 |
| @ant-design/pro-layout 6.26.6 | <https://procomponents.ant.design/components/layout/> | 中后台高阶组件 |
| zustand | <https://github.com/pmndrs/zustand> | 轻量级状态管理 |
| typescript | - | 代码类型规范 |
| axios | - | 数据请求 |
| prettier | - | 代码美化,格式化 |
| eslint | - | 代码规范 |
| stylelint | - | css 代码规范 |
| husky | - | git commit 检验 |
| lint-staged | - | git commit 检验 |
## 开发构建
### 安装依赖
## 安装及使用
```bash
# 安装依赖
pnpm install
```
### 开发
# 启动
pnpm start
```bash
pnpm run start
```
# 构建
pnpm build
## 构建
``` bash
pnpm run build
# 预览build产物
pnpm preview
```
## 结构目录
## 目录结构
```
├── README.md
......@@ -65,18 +55,17 @@ pnpm run build
│   └── user.ts
├── package.json
├── pnpm-lock.yaml
├── public // 公共
│   ├── CNAME
│   ├── config
│   ├── cpas-business // 业务组件
│   ├── cpas-ui
│   ├── favicon.ico
│   ├── icons
├── public # 静态资源
│   ├── CNAME
│   ├── config # 配置文件
│   ├── cpas-business # 业务组件
│   ├── cpas-ui # 业务UI
│   ├── favicon.ico
│   ├── icons
│   ├── logo.png
│   ├── logo1.png
│   ├── modules
│   ├── theme
│   └── vite.svg
│   ├── theme # 主题
├── src
│   ├── 404.tsx
│   ├── App.tsx
......@@ -85,27 +74,25 @@ pnpm run build
│   ├── assets
│   ├── components
│   ├── config
│   ├── global-copy.tsx
│   ├── i18n // 国际化
│   ├── initial.tsx // 运行时配置,获取initState中的各种配置
│   ├── layout // 布局
│   ├── i18n # 国际化配置
│   ├── initial.tsx # 运行时组件获取initState中的各种配置
│   ├── layout # 布局组件
│   ├── lib
│   ├── main.tsx
│   ├── models
│   ├── pages
│   ├── router // 路由配置
│   ├── server
│   ├── services
│   ├── store // 状态管理
│   ├── main.tsx # 入口文件
│   ├── models
│   ├── pages # 页面
│   ├── router # 路由配置
│   ├── services # 接口请求
│   ├── store # 状态管理
│   ├── types
│   ├── typing.ts
│   ├── typings.d.ts
│   ├── umi // 封装了umi的一些方法,方便迁移
│   ├── utils
│   └── vite-env.d.ts
│   ├── umi # 封装umi目录,方便旧业务迁移
│   ├── utils # 工具
│   └── vite-env.d.ts # vite全局ts声明
├── tsconfig.json
├── tsconfig.node.json
└── vite.config.ts // vite相关配置
└── vite.config.ts # vite开发生产配置
```
## 功能列表
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment