瀏覽代碼

Merge branch 'gzu_1st_main_20260908(教育考试)' into SCHOOL-XiBeiNongLin

dedsudiyu 1 周之前
父節點
當前提交
cd78306dc9
共有 1 個文件被更改,包括 12 次插入 和 6 次删除
  1. 12 6
      api/request/request.js

+ 12 - 6
api/request/request.js

@@ -65,12 +65,13 @@ export const apiResquest = (prams) => {
 				// 失败
 				uni.hideLoading()
 				uni.showToast({
-					mask: true,
+					mask: false,
 					icon: "none",
 					position: "center",
 					title: '出错啦~请联系管理员!',
 					duration: 2000
 				});
+				reject(err);
 			},
 			complete: () => {
 				// 完成
@@ -139,12 +140,13 @@ export const apiResquestOutside = (prams) => {
 				// 失败
 				uni.hideLoading()
 				uni.showToast({
-					mask: true,
+					mask: false,
 					icon: "none",
 					position: "center",
 					title: '出错啦~请联系管理员!',
 					duration: 2000
 				});
+				reject(err);
 			},
 			complete: () => {
 				// 完成
@@ -211,12 +213,13 @@ export const apiResquestForm = (prams) => {
 				// 失败
 				uni.hideLoading()
 				uni.showToast({
-					mask: true,
+					mask: false,
 					icon: "none",
 					position: "center",
 					title: '出错啦~请联系管理员!',
 					duration: 2000
 				});
+				reject(err);
 			},
 			complete: () => {
 				// 完成
@@ -281,12 +284,13 @@ export const apiResquestJsonList = (prams) => {
 				// 失败
 				uni.hideLoading()
 				uni.showToast({
-					mask: true,
+					mask: false,
 					icon: "none",
 					position: "center",
 					title: '出错啦~请联系管理员!',
 					duration: 2000
 				});
+				reject(err);
 			},
 			complete: () => {
 				// 完成
@@ -353,12 +357,13 @@ export const apiResquestFormVideo = (prams) => {
 				// 失败
 				uni.hideLoading()
 				uni.showToast({
-					mask: true,
+					mask: false,
 					icon: "none",
 					position: "center",
 					title: '出错啦~请联系管理员!',
 					duration: 2000
 				});
+				reject(err);
 			},
 			complete: () => {
 				// 完成
@@ -422,12 +427,13 @@ export const apiResquestTimer = (prams) => {
 				// 失败
 				uni.hideLoading()
 				uni.showToast({
-					mask: true,
+					mask: false,
 					icon: "none",
 					position: "center",
 					title: '出错啦~请联系管理员!',
 					duration: 2000
 				});
+				reject(err);
 			},
 			complete: () => {
 				// 完成