修复搜索=

This commit is contained in:
wulin 2020-11-13 16:20:15 +08:00
parent 4d7bbf9ca4
commit 08dd8b8ae0

View File

@ -75,7 +75,7 @@ export default {
if(this.typeIndex == 0 || this.typeIndex == 3){ if(this.typeIndex == 0 || this.typeIndex == 3){
apiFindStaff(this.query).then(data => { apiFindStaff(this.query).then(data => {
console.log(data) console.log(data)
if(data.code != 0){ if(data.code != 200){
this.$message.error("异常" + data.msg); this.$message.error("异常" + data.msg);
return return
} }
@ -90,7 +90,7 @@ export default {
}else { }else {
apiFindDepat(this.query).then(data => { apiFindDepat(this.query).then(data => {
console.log(data) console.log(data)
if(data.code != 0){ if(data.code != 200){
this.$message.error("异常" + data.msg); this.$message.error("异常" + data.msg);
return return
} }