request-legacy.7c9d50c8.js 569 B

1
  1. System.register(["./index-legacy.b1b66c39.js"],(function(e){"use strict";var t,r,n;return{setters:[function(e){t=e.m,r=e.E,n=e.n}],execute:function(){const s=e("a",t.create({baseURL:"https://sso.xmnk.cn/api",timeout:5e3}));s.interceptors.request.use((function(e){return e}),(function(e){return Promise.reject(e)})),s.interceptors.response.use((function(e){if(console.log(e,"pppp"),200===e.data.code)return Promise.resolve(e);505===e.data.code?r.warning(e.data.msg):401===e.data.code?n.push("/login"):r.error(e.data.msg)}),(function(e){return Promise.reject(e)}))}}}));