Browse Source

增加弹窗

wangxy 4 months ago
parent
commit
07b182c613
1 changed files with 4 additions and 2 deletions
  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;