添加任务列表刷新问题

This commit is contained in:
zhangyc
2022-12-01 16:11:41 +08:00
parent 6be6404bc1
commit d52e08444e
7 changed files with 22 additions and 21 deletions

View File

@@ -251,8 +251,8 @@ export default {
if (props.edit) {
api
.updateDiscuss(obj)
.then((res) => {
updateTask(res);
.then(async(res) => {
await updateTask(res);
closeDrawer();
ctx.emit("changeData", false);
message.destroy();
@@ -265,8 +265,8 @@ export default {
} else {
api
.createDiscuss(obj)
.then((res) => {
updateTask(res);
.then(async(res) => {
await updateTask(res);
closeDrawer();
ctx.emit("changeData", false);
message.destroy();