@titaui/pc 1.7.3 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -197,10 +197,13 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
197
197
|
setOkrs(res.works || []);
|
|
198
198
|
setTotal(res.total);
|
|
199
199
|
setLoading(false);
|
|
200
|
-
okrsRef.current = res.works;
|
|
201
200
|
});
|
|
202
201
|
};
|
|
203
202
|
|
|
203
|
+
(0, _react.useEffect)(function () {
|
|
204
|
+
okrsRef.current = okrs;
|
|
205
|
+
}, [okrs]);
|
|
206
|
+
|
|
204
207
|
var handlePageChange = function handlePageChange(page, pageSize) {
|
|
205
208
|
setPageNum(page);
|
|
206
209
|
setPageSize(pageSize);
|