(uni-app) request timeout for WeChat applet - time setting

Not much to say, just go to the code! ! !

1. Setting method

insert image description here

The networkTimeout configuration item is at the same level as appid, name, h5 and other configuration items.
Note: After adding or modifying the timeout time, you need to restart the service!

Two, the code

"networkTimeout":{
    
      
	"request":30000,
	"uploadFile":60000,
	"downloadFile":60000
}

Two, reference

uni-app official website reference address: https://uniapp.dcloud.io/collocation/manifest?id=networktimeout

networkTimeout configurable items:
insert image description here

come on! Ori! ! !

Guess you like

Origin blog.csdn.net/qq_39007178/article/details/116754840