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

fix: 修改readme文件

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