import { timeout } from 'rxjs/operators/timeout';
this.http.post(requestUrl, param)
.pipe(timeout(3000))
.toPromise()
...
import { timeout } from 'rxjs/operators/timeout';
this.http.post(requestUrl, param)
.pipe(timeout(3000))
.toPromise()
...
本文标题:Aangular http超时设置
本文链接:https://www.haomeiwen.com/subject/qyynqctx.html
网友评论