This commit is contained in:
向明星 2024-08-08 12:21:35 +08:00
parent b72889fa0e
commit 9f29bc9baf
2 changed files with 6 additions and 5 deletions

View File

@ -288,9 +288,9 @@ class MilepostDetail extends Component {
<span className="color-grey-9 ml3 mr3">暂无描述</span>
)}
</div>
{data && data.attachments && data.attachments.length > 0 ? (
{data && data.attachmets && data.attachmets.length > 0 ? (
<Attachments
attachments={data.attachments}
attachments={data.attachmets}
showNotification={this.props.showNotification}
/>
) : (

View File

@ -59,13 +59,13 @@ class UpdateMilepost extends Component {
this.setState({
data: result.data,
selectedValue: result.data.effective_date && moment(result.data.effective_date),
get_attachments: result.data.attachments,
get_attachments: result.data.attachmets,
fileList: undefined,
})
this.props.form.setFieldsValue({
name: result.data.name,
description: result.data.description,
get_attachments: result.data.attachments,
get_attachments: result.data.attachmets,
fileList: undefined,
});
@ -80,7 +80,8 @@ class UpdateMilepost extends Component {
this.props.form.validateFieldsAndScroll((err, values) => {
if (!err) {
const { projectsId , owner } = this.props.match.params;
const { meilid,fileList } = this.props.match.params;
const { meilid } = this.props.match.params;
const { fileList } = this.state;
const url = `/${owner}/${projectsId}/milestones/${meilid}.json`;
let time = this.state.selectedValue && this.state.selectedValue.format("YYYY-MM-DD");