我需要使用列中的文本從 ant d 表列中獲取數據并重新渲染結果,但我的代碼無法正常工作?const columns = [ { title: "Stocks On Hand", dataIndex: "key", width: "33.333333333%", render: async function render(text) { //console.log(warehouse) const data = await dispatch(getStocksDetails(text,warehouse)) // console.log(data) return ( <> { <Text>{data.qty}</Text> } </> ) }, }, 沒有顯示任何數據
我們如何獲取/重新渲染 ANT D 列中的異步數據
喵喵時光機
2023-09-14 20:38:30