在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問(wèn)答/HTML/ 這樣調(diào)接口取參數(shù)id怎么會(huì)報(bào)錯(cuò)呢?

這樣調(diào)接口取參數(shù)id怎么會(huì)報(bào)錯(cuò)呢?

這樣調(diào)接口取參數(shù)id怎么會(huì)報(bào)錯(cuò)呢?
這是個(gè)彈出框 有兩個(gè)頁(yè)面會(huì)公用這個(gè)彈出框 另一個(gè)頁(yè)面調(diào)完沒(méi)有問(wèn)題 這個(gè)就報(bào)錯(cuò)了
報(bào)錯(cuò):
圖片描述

showApproveState(show,record) {
        const {busiType} = this.props;
        let busi_type = busiType?busiType:'';
        this.props.getApplyAudit(record.id,busi_type=='container'?'container':'apply');
        this.setState({
            ApproveStateVisible: show,
        })
    }
//action文件
export function getApplyAudit(id,type,state) {
    const path='/auditing/getApplyAuditInfo';
    return{
    type:"APPLY_AUDIT_INFO",
        payload: {
            promise: api.get(path, {
                params:{
                    id,
                    type,
                    state
                }
            })
        }
    }
}

//reducer文件
case 'APPLY_AUDIT_INFO_PENDING':
    return {...state,auditStateList:{loading:true}};
case 'APPLY_AUDIT_INFO_SUCCESS':
    return {...state,auditStateList:{result:action.payload, loading:false}};
case 'APPLY_AUDIT_INFO_ERROR':
    return {...state,auditStateList:{loading:false}};
回答
編輯回答
笨小蛋

id 未傳 或 類型出錯(cuò)

2017年9月10日 14:00