Browse Source

·fix delete project error (#6174)

2.0.7-release
Tandoy 3 years ago committed by GitHub
parent
commit
b71f6aea7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/_source/list.vue
  2. 2
      dolphinscheduler-ui/src/js/conf/home/store/projects/actions.js

2
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)

2
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)

Loading…
Cancel
Save