Commit d6683988 authored by 徐来柯's avatar 徐来柯

fix bug

parent 532f47a0
...@@ -320,6 +320,12 @@ export default { ...@@ -320,6 +320,12 @@ export default {
}).then((res)=>{ }).then((res)=>{
console.log('resadd==>',res) console.log('resadd==>',res)
if(res.data.code != 0){ if(res.data.code != 0){
if (res.data.code === -1) {
this.typeV = '5'
this.deleteShow = true
this.deletetext = res.data.msg
return
}
this.typeV = '9' this.typeV = '9'
this.deletetext = res.data.msg this.deletetext = res.data.msg
this.pathE = data this.pathE = data
...@@ -343,6 +349,12 @@ export default { ...@@ -343,6 +349,12 @@ export default {
}).then((res)=>{ }).then((res)=>{
console.log('resadd==>',res) console.log('resadd==>',res)
if(res.data.code != 0){ if(res.data.code != 0){
if (res.data.code === -1) {
this.typeV = '5'
this.deleteShow = true
this.deletetext = res.data.msg
return
}
this.typeV = '9' this.typeV = '9'
this.deletetext = res.data.msg this.deletetext = res.data.msg
this.pathE = data this.pathE = data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment