|
@@ -101,17 +101,16 @@ function B1tab1({ topType, setTopType }: Props, ref: any) {
|
|
|
const getListFu = useCallback(() => {
|
|
|
const objTemp: any = {};
|
|
|
|
|
|
- if (tableSelectRef.current.siteArr) {
|
|
|
- const temp = tableSelectRef.current.siteArr;
|
|
|
- objTemp.province = temp[0] || "";
|
|
|
- objTemp.city = temp[1] || "";
|
|
|
- objTemp.region = temp[2] || "";
|
|
|
- }
|
|
|
+ const temp = tableSelectRef.current.siteArr || [];
|
|
|
+ objTemp.province = temp[0] || "";
|
|
|
+ objTemp.city = temp[1] || "";
|
|
|
+ objTemp.region = temp[2] || "";
|
|
|
|
|
|
const obj = {
|
|
|
...tableSelectRef.current,
|
|
|
...objTemp,
|
|
|
};
|
|
|
+
|
|
|
dispatch(B1_APIgetlist(obj));
|
|
|
}, [dispatch]);
|
|
|
|