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