forked from Gitlink/forgeplus-react
Merge remote-tracking branch 'upstream/gitlink_server' into feature/comment
This commit is contained in:
commit
d85cad70e4
|
@ -27,7 +27,7 @@ function Releases({ owner, projectsId, releaseVersions, distribution }) {
|
|||
})
|
||||
:
|
||||
<div className="mt8">
|
||||
您暂未发布任何版本
|
||||
暂无发行版
|
||||
{distribution && <Link className="color-blue ml20" to={{pathname:`/${owner}/${projectsId}/releases/new`,state:{stable:true}}}>创建新版本</Link>}
|
||||
</div>
|
||||
}
|
||||
|
|
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in New Issue