소스 검색

增加弹窗

wangxy 4 달 전
부모
커밋
07b182c613
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      pages/unitTest/useUnit.js

+ 4 - 2
pages/unitTest/useUnit.js

@@ -163,12 +163,14 @@ export function useExam() {
 			}
 		
 		})
-
+		uni.showLoading({
+			title: '交卷中...'
+		});
 		const [error, cdata] = await catchError(httpUnit.getExamSubmit({
 			jieId: data.jieId,
 			shitiList: result
 		}));
-
+		uni.hideLoading()
 		if (error) {
 			toast("单元测试数据提交异常");
 			return;