lisenzhou 2 年 前
コミット
ddfb567080
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      src/pages/rotationChart/introduction/edit/index.jsx

+ 1
- 1
src/pages/rotationChart/introduction/edit/index.jsx ファイルの表示

@@ -26,7 +26,7 @@ export default (props) => {
26 26
   const getRegulationData = () => {
27 27
     setLoading(true);
28 28
     getRegulationList({ type: `station` }).then((res) => {
29
-      setData(res.records[0]);
29
+      setData(res.records[0]||{});
30 30
       setLoading(false);
31 31
       // formRef.current.setFieldsValue(res.records[0]);
32 32
       // console.log('tt', res)