import "axios";
import t from "../../../../utils/system/useSystem.js";
const l = async (o, s) => {
  if (o.response) {
    console.log("axios-响应中间件(成功响应): 处理token失效中间件已执行");
    const e = ["1001", "1002", "1003", "1009", "1011", "1012"];
    if (o.response.status === 200 && e.includes(o.response.data.code)) {
      const { TuiChuSystem: n } = t();
      n();
    } else
      console.log(
        "axios-响应中间件(成功响应): 处理token失效中间件已执行: token未失效，继续进行调用中间件链条"
      ), await s();
  }
};
export {
  l as handleTokenInvalidToLogin
};
