修改发布任务判断逻辑

This commit is contained in:
何童崇 2021-11-10 14:57:42 +08:00
parent c3ecbe1f97
commit c0cfe12db4
1 changed files with 2 additions and 4 deletions

View File

@ -198,7 +198,7 @@ export default Form.create()(forwardRef(({ current_user, form, showNotification,
showNotification("任务保存成功!");
if (!status) {
history.push("/task/myTask?published=false")
} else if (publishMode == '1') {
} else {
info({
title: '提示',
content: <div>
@ -209,9 +209,7 @@ export default Form.create()(forwardRef(({ current_user, form, showNotification,
history.push("/task/myTask?published=false");
},
});
} else {
history.push("/task/myTask");
}
}
} else {
showNotification(res.message);
}