yangg 3 days ago
parent
commit
6d179e9d38
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/utils/service.ts

+ 2 - 2
src/utils/service.ts

@@ -17,7 +17,7 @@ import { successMessage } from './message.js';
 function createService() {
 	// 创建一个 axios 实例
 	const service = axios.create({
-		timeout: 20000,
+		timeout: 15000,
 		headers: {
 			'Content-Type': 'application/json;charset=utf-8',
 		},
@@ -181,7 +181,7 @@ function createRequestFunction(service: any) {
 			headers: {
 				'Content-Type': get(config, 'headers.Content-Type', 'application/json'),
 			},
-			timeout: 5000,
+			timeout: 15000,
 			baseURL: getBaseURL(),
 			data: {},
 		};