1標籤html
<Popconfirm title={<div style={{ width: 200 }}>確認要刪除嗎?</div>} onConfirm={() => this.delFuc(record.id)} placement="topRight" okText="肯定" cancelText="取消" > <a className="color-handle-delete">刪除</a> </Popconfirm>
2方法this
delFuc=(id)=>{ console.log(111) const { dispatch } = this.props; dispatch({ type: 'opsmsModels/messageOpsmsDel', //調接口 payload: { body: { id:id, }, }, callback: () => { message.success('操做成功'); this.getPageList(); }, }); }