修改发布任务判断逻辑

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