潘志宝
2024-11-14 d5e559a2b1259c3c2aca2aa0292c3947f4c5c19b
1
2
3
4
// 携带登录态credentials必须为include
export default function fetch(url, options) {
  return window.fetch(url, { ...options, credentials: "omit" });
}