소스 검색

计件宝扫描回到顶部,失败语音优化,扫描code判断

zh 10 달 전
부모
커밋
a9ecdaa768
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      src/utils/androidPiece.ts

+ 10 - 0
src/utils/androidPiece.ts

@@ -8,6 +8,16 @@ export function scanRepeat(){
   }catch (e){
   }
 }
+/**
+ * 扫码失败
+ */
+export function scanErr(){
+  try {
+    // @ts-ignore
+    window.android.scanError()
+  }catch (e){
+  }
+}
 /**
  * 重新登录
  */