Commit b2bf5c2e authored by huanglu's avatar huanglu

docs: 编辑readme文档

parent 8e43737e
......@@ -44,13 +44,14 @@ module.exports = {
}
```
- config 目录下放置的配置文件
- build.js 放置打包、 代理、mock等配置数据
- config.js 放置打包、 代理、mock等配置数据
- 其他文件是 taro 框架在打包时需要的配置文件
- 本项目使用 dva 做全局状态管理
- src/models 目录下配置全局的状态数据,在该文件夹新增model文件,会自动注入到 src/models/index.ts 文件夹下
- 在页面文件夹下,添加的model.ts 文件,会自动注入到 dva 中
- dva 中的 modal 需要 通过 export default 方式导出
- 安装 bigfish-extension 插件, 有 action 的智能提示
- 使用方式如下
```typescript
......@@ -91,21 +92,3 @@ export default <DvaModel<CommonModels>> {
- src/pages 目录下放置小程序的页面文件
- src/subpages 目录下放置小程序的分包的目录
- package.json 文件下 的 fastgeek 字段的值 不要删除,很重要,在 使用 fastgeek 进行编译和部署时,会使用到
```
"build:weapp": "taro build --type weapp",
"build:swan": "taro build --type swan",
"build:alipay": "taro build --type alipay",
"build:tt": "taro build --type tt",
"build:h5": "taro build --type h5",
"build:rn": "taro build --type rn",
"build:qq": "taro build --type qq",
"build:quickapp": "taro build --type quickapp",
"dev:weapp": "npm run build:weapp -- --watch",
"dev:swan": "npm run build:swan -- --watch",
"dev:alipay": "npm run build:alipay -- --watch",
"dev:tt": "npm run build:tt -- --watch",
"dev:h5": "npm run build:h5 -- --watch",
"dev:rn": "npm run build:rn -- --watch",
"dev:qq": "npm run build:qq -- --watch",
```
\ No newline at end of file
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