pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

ProTable 不使用dataSource 使用了request 如何修改数据?

Open qinxukai opened this issue 3 years ago • 4 comments

qinxukai avatar Nov 08 '22 06:11 qinxukai

有没有类似 useRequest的mutate

qinxukai avatar Nov 08 '22 06:11 qinxukai

params

WuJiY avatar Nov 08 '22 08:11 WuJiY

@WuJiY 不是重新请求 是直接修改数据

qinxukai avatar Nov 08 '22 08:11 qinxukai

request = {async () =>{
 const {data} = await backendAPI();
//任意修改
return {
  success:true,
  data
}

}}

WuJiY avatar Nov 08 '22 12:11 WuJiY