Browse Source

fix: more build configs

dev
hechang27-sprt 6 months ago
parent
commit
fd99a1756e
  1. 2
      plugs/http/axios.ts

2
plugs/http/axios.ts

@ -37,7 +37,7 @@ _axios.interceptors.request.use( @@ -37,7 +37,7 @@ _axios.interceptors.request.use(
delEmpty(data);
data.t = time;
}
if (data != null && typeof data === "string") {
if (data != null && typeof data === "string" && config?.headers) {
config.headers["Content-Type"] = "text/plain;charset=UTF-8";
}
return config;

Loading…
Cancel
Save