Преглед изворни кода

优化相机操作页面代码

niujiuru пре 3 недеља
родитељ
комит
981583dcce
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      web-ui.service/web/static/js/page5.js

+ 5 - 0
web-ui.service/web/static/js/page5.js

@@ -88,6 +88,11 @@ function restartCameraService() {
     return;
   }
 
+  if (cameraTakingPhoto) {
+    alert("相机使用中,请稍后再重试!");
+    return;
+  }
+
   const btn = event.currentTarget;
   btn.disabled = true;