首先把slice 的部份移到 src/store/slice/article.js 中,然後加上取得資料的action ,這邊使用了 @reduxjs/toolkit 提供的 createAsyncThunk ,抓資料的部份用的是 ...
確定! 回上一頁