Skip to content

request.js中设置axios的timout不起作用 #1304

@shanxixiaohuozi

Description

@shanxixiaohuozi

Question (问题描述)
前端设置的超时时间不起作用,后端接口阻塞了30s,前端设置了6s,目前是会一直等到30s返回数据
image

Describe the solution you'd like (你期待的是什么?)
前端应该在请求6s的时候就返回超时

Additional context(附加信息)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions