import "axios";
async function l(r, e) {
  const { config: o } = r;
  if (o.method === "get" && o.params) {
    console.log("axios-请求中间件: 当前请求是GET请求,需要处理参数拼接到Url中去，中间件已执行");
    let s = o.url;
    s += "?";
    const t = Object.keys(o.params);
    for (const a of t)
      o.params[a] !== void 0 && o.params[a] !== null && (s += `${a}=${encodeURIComponent(o.params[a])}&`);
    s = s.substring(0, s.length - 1), o.params = {}, o.url = s;
  }
  await e();
}
export {
  l as disposeGetUrlParams
};
