wjx 2 rokov pred
rodič
commit
05ac6bebbb

+ 1 - 1
src/pages/adMonitor/adMonitorList/monitor.tsx

@@ -449,7 +449,7 @@ function Monitor(props: { onChange: () => void }) {
                     setQueryForm({ ...newQueryForm })
                 } : (props: any) => {
                     let { sortData } = props
-                    if (sortData && JSON.stringify('sortData') !== '{}') {
+                    if (sortData && JSON.stringify(sortData) !== '{}') {
                         let { field, order } = sortData   // descend 降序 大到小  ascend 升序 小到大 planDetailList
                         if (mode === 'detail') {
                             getPlanDetailList?.mutate({ data: order ? getPlanDetailList?.data?.data?.sort(compare(field, order)) : [...planDetailList] })