|
|
@@ -180,7 +180,7 @@ export default {
|
|
|
this.active = true
|
|
|
this.hsWsApi.addMessageListener((res) => {
|
|
|
if (res.data === 'failed to obtain ID card information') {
|
|
|
- this.$message.error('读取失败,请重试')
|
|
|
+ this.$message.error('读取失败,请拿起卡片重试')
|
|
|
this.getIdInfo()
|
|
|
return
|
|
|
}
|
|
|
@@ -188,8 +188,8 @@ export default {
|
|
|
const alldata = res.data.split('|')
|
|
|
console.log(alldata)
|
|
|
|
|
|
- if (alldata.length.length && alldata[0] === '卡认证失败') {
|
|
|
- this.$message.error('读取失败,请重试')
|
|
|
+ if (alldata.length && alldata[0] === '卡认证失败') {
|
|
|
+ this.$message.error('读取失败,请拿起卡片重试')
|
|
|
this.loading = false
|
|
|
this.active = false
|
|
|
return
|