//主页面里边直接写一个请求方法
componentDidMount(){
this.props.dispatch({
type:'login/getImg',
paylaod:{
//参数
}
}).then((res)=>{
//res就是拿到的数据
})
}
//models层从'@/services/api'引进来一个方法getCaptcha
import {
routerRedux } from 'dva/router';
import {
stringify } from 'qs';
import