From 5fd28ccb34f808a634d66e6ff03078b36f9e745d Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期日, 29 九月 2024 10:15:36 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/page/mission/MissionListContent.jsx | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/zy-acs-flow/src/page/mission/MissionListContent.jsx b/zy-acs-flow/src/page/mission/MissionListContent.jsx
index 8c4626a..64ce7b8 100644
--- a/zy-acs-flow/src/page/mission/MissionListContent.jsx
+++ b/zy-acs-flow/src/page/mission/MissionListContent.jsx
@@ -1,7 +1,6 @@
import { useEffect, useState } from 'react';
import { DragDropContext } from '@hello-pangea/dnd';
-import { Box } from '@mui/material';
-import isEqual from 'lodash/isEqual';
+import { Box, LinearProgress } from '@mui/material';
import {
useDataProvider,
useListContext,
@@ -16,14 +15,10 @@
const translate = useTranslate();
const notify = useNotify();
const refresh = useRefresh();
- const { data, isPending, refetch } = useListContext();
const dataProvider = useDataProvider();
+ const { data, isPending, refetch } = useListContext();
const [stages, setStages] = useState([]);
-
- // const [dealsByStage, setDealsByStage] = useState(
- // getDealsByStage([], dealStages)
- // );
useEffect(() => {
const httpStages = async () => {
@@ -51,7 +46,7 @@
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [data]);
- if (isPending) return null;
+ if (isPending) return <LinearProgress />;
const onDragEnd = result => {
const { destination, source } = result;
--
Gitblit v1.9.1