Commit e61a363f authored by xhx's avatar xhx

fix增加邀请人错误提示

parent d07053a5
...@@ -164,8 +164,14 @@ export default Vue.extend({ ...@@ -164,8 +164,14 @@ export default Vue.extend({
} else { } else {
Toast('请输入正确的推荐人地址') Toast('请输入正确的推荐人地址')
} }
}).catch(() => { }).catch((e) => {
console.log(e)
const { status } = e.response
if (status === 413) {
Toast('该设备已绑定过推荐人')
} else {
Toast('请输入正确的推荐人地址') Toast('请输入正确的推荐人地址')
}
}) })
}, },
}, },
......
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