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