mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-30 03:08:01 +08:00
·fix delete project error (#6174)
This commit is contained in:
parent
5dcfad9849
commit
b71f6aea7a
@ -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)
|
||||
|
@ -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…
Reference in New Issue
Block a user