diff --git a/app/project/view/task/view.html b/app/project/view/task/view.html
index d345ca7c3697c13569298cb39cb554c38c78a761..382a34a6a55071a8c798c17003aa78c5d98b7cba 100644
--- a/app/project/view/task/view.html
+++ b/app/project/view/task/view.html
@@ -230,9 +230,10 @@
let callback = function (e) {
layer.closeAll();
layer.msg(e.msg);
- setTimeout(function () {
- location.reload();
- }, 1000)
+ parent.layui.taskTable.reload();
+ if (e.code == 0) {
+ parent.layui.tool.close(1000);
+ }
}
let postData = { "id": detail_id };
tool.delete("/project/task/delete", postData, callback);