فهرست منبع

fix: 代码提交问题解决

sun-chaochao 3 سال پیش
والد
کامیت
2854463b17
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/pages/log/System/Detail/index.tsx

+ 1 - 1
src/pages/log/System/Detail/index.tsx

@@ -9,7 +9,7 @@ interface Props {
 }
 
 const Detail = (props: Props) => {
-  const [data, setDada] = useState<Partial<SystemLogItem>>(props.data);
+  const [data, setDada] = useState<Partial<SystemLogItem>>(props.data || {});
 
   useEffect(() => {
     setDada(props.data);