Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 425 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 425 Bytes

##基于react的dva代码生成器

一键生成model、route、less、proxy文件。同时内置perfect-fetch,你只要像如下代码调用就可以了:

return sendrequest(`${nodeserver}/xx/xx/xx`, {
	id: 1,
	name: "jnotnull"
})

perfect-fetch请参见https://github.com/jnotnull/perfect-fetch

##安装

npm install dva-generator -g

##执行

generate-dva bot