Skip to content

lvxiaowu/dva-react-create-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mockjs

  • 安装mockjs
    npm install dva-cli -g

*配置.roadhogrc.mock.js 设置如下

    const fs=require('fs');
    const path=require('path');
    const mockPath=path.join(__dirname+'/mock');

    const mock={};
    fs.readdirSync(mockPath).forEach(file=>{

        Object.assign(mock,require('./mock/'+file));
    });
    module.exports=mock;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published