Commit ac7c0933 by zhaochengxiang

服务资源

parent 801a7800
...@@ -10,7 +10,7 @@ const FC = (props) => { ...@@ -10,7 +10,7 @@ const FC = (props) => {
const app = useContext(AppContext); const app = useContext(AppContext);
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [data, setData] = useState([]); const [data, setData] = useState([]);
const [historyParams, setHistoryParams] = useState({historyVisible: false, id: undefined }) const [historyParams, setHistoryParams] = useState({visible: false, id: undefined })
useEffect(() => { useEffect(() => {
getServices(); getServices();
...@@ -34,11 +34,11 @@ const FC = (props) => { ...@@ -34,11 +34,11 @@ const FC = (props) => {
} }
const onHistory = (id) => { const onHistory = (id) => {
setHistoryParams({historyVisible: true, id}); setHistoryParams({visible: true, id});
} }
const onHistoryCancel = () => { const onHistoryCancel = () => {
setHistoryParams({historyVisible: false, id: undefined}); setHistoryParams({visible: false, id: undefined});
} }
return ( return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment