This is an automated email from the ASF dual-hosted git repository.

jinyleechina pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new b71f6ae  ·fix delete project error (#6174)
b71f6ae is described below

commit b71f6aea7af899da41bd958caa30d68d89a9aec4
Author: Tandoy <[email protected]>
AuthorDate: Sat Sep 25 11:58:48 2021 +0800

    ·fix delete project error (#6174)
---
 .../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 9ce93e5..05fedbb 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 f430a02..d8927c1 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)

Reply via email to