Explorar o código

fix: 代码提交问题解决

sun-chaochao %!s(int64=4) %!d(string=hai) anos
pai
achega
2854463b17
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);