Merge remote-tracking branch 'upstream/gitlink_server' into feature/comment

This commit is contained in:
黄心宇 2023-12-15 10:35:51 +08:00
commit d85cad70e4
2 changed files with 3 additions and 3 deletions

View File

@ -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>
}

View File

@ -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])