|
@@ -67,7 +67,7 @@ function TableData(props: Prosp) {
|
|
|
/*************************/
|
|
|
|
|
|
useEffect(() => {
|
|
|
- if (originalColumns.length > 0) {
|
|
|
+ if (isZj && originalColumns.length > 0) {
|
|
|
if (sortData?.field && sortData.order) {
|
|
|
setNewColumns(originalColumns.map((item: any) => {
|
|
|
if (item.dataIndex === sortData?.field) {
|
|
@@ -82,7 +82,7 @@ function TableData(props: Prosp) {
|
|
|
}))
|
|
|
}
|
|
|
}
|
|
|
- }, [originalColumns, sortData])
|
|
|
+ }, [originalColumns, sortData, isZj])
|
|
|
|
|
|
const { run: runSet } = useThrottleFn((newArr, newConfig, fixedData) => {
|
|
|
console.log('设置配置改变重新赋值')
|