请求错误代码
请求错误代码填写
function(e, t, n) { "use strict"; function i() { var e = +window.localStorage.getItem(f) || 0; return Date.now() - e } Object.defineProperty(t, "__esModule", { value: !0 }), n.d(t, "default", function() { return h }); var r, o, a = n(0), s = n.n(a), u = n(1), c = n.n(u), l = n(30), d = n(2), f = "RH_ClosedTime", h = (r = Object(d.b)(["eventBus"]))(o = function() { function e() { s()(this, e) } return c()(e, [{ key: "init", value: function() { if (!l.a) { var e = this.eventBus.eventType, t = e.CROSS_DOMAIN_ERROR, n = e.CLOSE_REQUEST_HEALTH_ALERT; this.eventBus.on(t, this.onError.bind(this)), this.eventBus.on(n, this.onClose.bind(this)) } } }, { key: "onError", value: function() { var e = window.sessionStorage, t = ( + e.getItem("RH_ErrorCount") || 0) + 1; i() < 864e5 || (t > 2 ? (this.eventBus.emit(this.eventBus.eventType.SHOW_REQUEST_HEALTH_ALERT), e.setItem("RH_ErrorCount", 0)) : e.setItem("RH_ErrorCount", t)) } }, { key: "onClose", value: function() { window.localStorage.setItem(f, Date.now()) } }]), e } ()) || o },