删减多余传参

This commit is contained in:
谢思 2024-03-20 10:37:30 +08:00
parent 12f61a431c
commit 4d9aed91d6
1 changed files with 4 additions and 1 deletions

View File

@ -163,13 +163,16 @@ class Setting extends Component {
update=(values)=>{
const { projectsId , owner } = this.props.match.params;
const { private_check , project_units } = this.state;
const {project_language_id, project_category_id, pr_view_admin} = values;
const url = `/${owner}/${projectsId}.json`;
axios.put(url, {
name: values.project_name,
description: values.project_description,
private: private_check,
identifier:values.project_identifier,
...values,
project_language_id,
project_category_id,
pr_view_admin
}).then((result) => {
if (result) {
this.props.showNotification(`仓库信息修改成功!`);