axios printing error just returns an error, the specific error message does not return json format. Error.response need to format the return.
As shown below:
After printing can return error.response follows:
tenant_userAdd(data).then(response => {
console.log(response)
this.$message.success('提交成功');
}).catch(error => {
console.log(error.response.message);
})