logo
0
0
Login
何建钦<1373883296@qq.com>
初始化项目,添加api与model生成方法

Project setup

API 请求与 model 生成思路

请求swagger的json文档保存到本地然后git diff比较,根据模板生成model与api请求

swagger json 文档地址修改

script/目录下的config.ts文件的API对象里的DOC_JSON_URL属性

生成 API 请求与 model

yarn gen_api

Install dependencies

yarn install

Compiles and hot-reloads for development

yarn run serve

Compiles and minifies for production

yarn run build

Lints and fixes files

yarn run lint

Run your unit tests

yarn run test:unit

Run your end-to-end tests

yarn run test:e2e

Generate all svg components

yarn run svg