Browse Source

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

zh 10 months ago
parent
commit
a9ecdaa768
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/utils/androidPiece.ts

+ 10 - 0
src/utils/androidPiece.ts

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