From b71f6aea7af899da41bd958caa30d68d89a9aec4 Mon Sep 17 00:00:00 2001 From: Tandoy <56899730+Tandoy@users.noreply.github.com> Date: Sat, 25 Sep 2021 11:58:48 +0800 Subject: [PATCH] =?UTF-8?q?=C2=B7fix=20delete=20project=20error=20(#6174)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/js/conf/home/pages/projects/pages/list/_source/list.vue | 2 +- dolphinscheduler-ui/src/js/conf/home/store/projects/actions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/_source/list.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/_source/list.vue index 9ce93e506d..05fedbb44c 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/_source/list.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/_source/list.vue @@ -106,7 +106,7 @@ */ _delete (item, i) { this.deleteProjects({ - projectId: item.id + projectCode: item.code }).then(res => { this.$emit('on-update') this.$message.success(res.msg) diff --git a/dolphinscheduler-ui/src/js/conf/home/store/projects/actions.js b/dolphinscheduler-ui/src/js/conf/home/store/projects/actions.js index f430a024b2..d8927c1adf 100644 --- a/dolphinscheduler-ui/src/js/conf/home/store/projects/actions.js +++ b/dolphinscheduler-ui/src/js/conf/home/store/projects/actions.js @@ -59,7 +59,7 @@ export default { */ deleteProjects ({ state }, payload) { return new Promise((resolve, reject) => { - io.delete(`projects/${payload}`, {}, res => { + io.delete(`projects/${payload.projectCode}`, {}, res => { resolve(res) }).catch(e => { reject(e)