wangxy 1 ヶ月 前
コミット
a40bf1f9e6
2 ファイル変更8 行追加2 行削除
  1. 5 1
      components/zhuapaiConfirm/index.vue
  2. 3 1
      pages/client/Kaoshi/examCamera.vue

+ 5 - 1
components/zhuapaiConfirm/index.vue

@@ -65,8 +65,12 @@
 	function showDialog() {
 		textMess.value = '摄像头正在初始化...'
 		popupRef.value.open();
+	
 		setTimeout(() => {
-			startCamera()
+			showConfirmBtn.value = true;
+			nextTick(() => {
+				startCamera()
+			})
 		},1000)
 	}
 

+ 3 - 1
pages/client/Kaoshi/examCamera.vue

@@ -21,7 +21,9 @@
 
 	onLoad((options) => {
 		opt.value = options;
-		zhuapaiConfirmRef.value.showDialog()
+		setTimeout(() => {
+			zhuapaiConfirmRef.value.showDialog()
+		},1000)
 	})
 
 	function zpConfirmSuccess() {