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("任务保存成功!");
|
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,9 +209,7 @@ 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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue