diff --git a/src/forge/Component/Releases.jsx b/src/forge/Component/Releases.jsx index 94768e73..562b68ac 100644 --- a/src/forge/Component/Releases.jsx +++ b/src/forge/Component/Releases.jsx @@ -27,7 +27,7 @@ function Releases({ owner, projectsId, releaseVersions, distribution }) { }) :
- 您暂未发布任何版本 + 暂无发行版 {distribution && 创建新版本}
} diff --git a/src/forge/Issues/Component/comments/editComment.jsx b/src/forge/Issues/Component/comments/editComment.jsx index a0083d2f..432713a4 100644 --- a/src/forge/Issues/Component/comments/editComment.jsx +++ b/src/forge/Issues/Component/comments/editComment.jsx @@ -7,7 +7,7 @@ import Attachments from "../../../../forge/Upload/attachment"; import UploadImg from "../../../../forge/Images/upload.png"; import './list.scss'; import '../../../../forge/Order/order.scss'; -import { useState } from 'react'; +import { useState,useEffect } from 'react'; import { Link } from 'react-router-dom'; import axios from 'axios'; @@ -23,7 +23,7 @@ function EditComment(props){ const [attachmentClean, setAttachmentClean] = useState(true); const [ save , setSave ] = useState(undefined); - useState(()=>{ + useEffect(()=>{ setSave(props.defaultFileList); },[props.defaultFileList])