diff --git a/src/views/projectcenter/ProjectManage.vue b/src/views/projectcenter/ProjectManage.vue index 6a1d0225..46e7ffa9 100644 --- a/src/views/projectcenter/ProjectManage.vue +++ b/src/views/projectcenter/ProjectManage.vue @@ -1230,22 +1230,13 @@ export default { }; //确认复制 const copyProject = () => { - let obj = { + state.tableLoading = true + api.handleProject({ projectId: state.copyProjectId, type: 2, - }; - api - .handleProject(obj) - .then((res) => { - console.log("复制成功", res); - message.destroy(); - message.success("复制成功"); - state.copyModal = false; - getTableDate(); - }) - .catch((err) => { - console.log("复制失败", err); - }); + }).then(() => getTableDate()) + message.success("复制成功"); + state.copyModal = false; }; //打开提交审核弹窗 const showReviewModal = (projectId) => {