if (Array.isArray(res.data.resp) && res.data.resp.length === 0) { if (res.data.nopass != '') { this.$message('error', res.data.nopass) return false; } } else { console.log(4445,res.data.resp) }