1 |
- import{m as o,n as t,E as s}from"./index.87477719.js";const a="https://sso.xmnk.cn/api",r=o.create({baseURL:a,timeout:5e3});r.interceptors.request.use(function(e){return e},function(e){return Promise.reject(e)});r.interceptors.response.use(function(e){if(console.log(e,"pppp"),e.data.code===200)return t.push("/web"),Promise.resolve(e);e.data.code===401?t.push("/login"):s.error(e.data.msg)},function(e){return Promise.reject(e)});export{r as a};
|