issue引入显示标题

This commit is contained in:
caishi 2024-04-18 15:19:58 +08:00
parent f4cc610de7
commit ac6802169c
4 changed files with 6 additions and 4 deletions

View File

@ -28,7 +28,8 @@ 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>}
{distribution && <Link className="color-blue ml20" to={{pathname:`/${owner}/${projectsId}
new`,state:{stable:true}}}>发布新版本</Link>}
</div>
}

View File

@ -136,7 +136,8 @@ class Index extends Component {
action: actionUrl || `${getUploadActionUrl()}`,
onChange: this.handleChange,
onRemove: this.onAttachmentRemove,
beforeUpload: this.beforeUpload
beforeUpload: this.beforeUpload,
multiple:true
};
return (

View File

@ -32,7 +32,7 @@ function TopEdition({register,current_user}) {
const url = `/topics.json?topic_type=banner`;
axios.get(url,{
params:{
limit:5
limit:6
}
}).then(result=>{
if(result){

View File

@ -158,7 +158,7 @@ export default ({ mdID, onChange, onCMBeforeChange, onCMBlur, error = false, cla
const ch = cursor.ch;//列
const startIndex = cm.getRange({line,ch:0},{line,ch}).lastIndexOf("#");
//替换内容
cm.replaceRange(`[#${i.project_issues_index}](/${owner}/${projectsId}/issues/${i.project_issues_index}) `,{line,ch:startIndex},{line,ch});
cm.replaceRange(`[#${i.subject}](/${owner}/${projectsId}/issues/${i.project_issues_index}) `,{line,ch:startIndex},{line,ch});
//鼠标聚焦
cm.focus();
// 保存引用的issue