增加超时时间
This commit is contained in:
parent
5a385e346f
commit
81936877a8
|
|
@ -32,7 +32,7 @@ const httpInterceptor = {
|
|||
}
|
||||
|
||||
// 2. 设置请求超时时间,默认为60s,设置为 10s
|
||||
options.timeout = 15000
|
||||
options.timeout = 30000
|
||||
|
||||
// 3. 增加小程序端请求头标识
|
||||
options.header = {
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ export default defineConfig({
|
|||
proxy: {
|
||||
// 在此处编写代理规则
|
||||
'/api': {
|
||||
// target: 'http://192.168.2.76:18080',
|
||||
target: 'http://192.168.0.96:18080',
|
||||
target: 'http://sgwpdm.ah.sgcc.com.cn/iws/jiju-api',
|
||||
// target: 'http://192.168.0.96:18080',
|
||||
// target: 'http://36.33.26.201:19988/prod-api/',
|
||||
// target: 'http://192.168.0.234:18080',
|
||||
// target: 'http://localhost:18080',
|
||||
|
|
|
|||
Loading…
Reference in New Issue