·fix delete project error (#6174)

This commit is contained in:
Tandoy 2021-09-25 11:58:48 +08:00 committed by GitHub
parent 5dcfad9849
commit b71f6aea7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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