Selaa lähdekoodia

fix: 接口请求时间

chenjj 1 viikko sitten
vanhempi
commit
87674ae85b
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 2 2
      config.js
  2. 1 1
      utils/request.ts

+ 2 - 2
config.js

@@ -2,9 +2,9 @@
 const config = {
 	// baseUrl: 'https://vue.ruoyi.vip/prod-api',
 	//cloud后台网关地址
-	baseUrl: 'http://192.168.100.95:9527',//嵘哥
+	// baseUrl: 'http://192.168.100.95:9527',//嵘哥
 	// baseUrl: 'http://192.168.100.121:9527',//龙哥
-	// baseUrl: 'https://zybooks.tech/prod-api',
+	baseUrl: 'https://zybooks.tech/prod-api',
 	mapKey:'KFEBZ-P2GKZ-A5PX4-7Q6Y7-KXOBF-XCB4C',
 	appName: '金邻助家',
 	// 应用信息

+ 1 - 1
utils/request.ts

@@ -5,7 +5,7 @@ import errorCode from '@/utils/errorCode'
 import { toast, showConfirm, tansParams } from '@/utils/common'
 import { RequestConfig, ResponseData } from '@/types/request'
 
-let timeout = 10000
+let timeout = 600000
 const baseUrl = config.baseUrl
 
 const request = <T>(config:RequestConfig):Promise<ResponseData<T>> => {