【问题标题】:extjs 6.53 increase remote request timeout globallyextjs 6.53 全局增加远程请求超时
【发布时间】:2020-05-18 21:36:28
【问题描述】:

我在 Application.js 中添加了以下内容:

Ext.Ajax.setTimeout(300000);
Ext.override(Ext.data.proxy.Server, { timeout: Ext.Ajax.getTimeout() });

我的商店在 30 秒后仍然超时。

【问题讨论】:

    标签: ajax extjs6.5


    【解决方案1】:

    您确实需要为 ajax/proxy 覆盖它,但是您可以通过 Connection 覆盖 ajax 的一个。在您的代码中,对于代理,您已将超时覆盖为函数引用。

    Ext.define(null, {
      override: 'Ext.data.Connection',
      timeout: 1
    });
    
    Ext.define(null, {
      override: 'Ext.data.proxy.Server',
      config: {
        timeout: 1
      }
    });
    

    【讨论】:

      猜你喜欢
      • 2013-11-03
      • 2017-04-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-23
      • 2013-06-01
      • 1970-01-01
      相关资源
      最近更新 更多