LaveyD 1 miesiąc temu
rodzic
commit
f3ef5d692a
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/components/ReaderInput/index.vue

+ 3 - 3
src/components/ReaderInput/index.vue

@@ -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