forked from Gitlink/forgeplus-react
修改发布任务判断逻辑
This commit is contained in:
parent
c3ecbe1f97
commit
c0cfe12db4
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue