Browse Source

headers参数用中划线

newMaster
1747191978@qq.com 3 months ago
parent
commit
91b7a1fb7a
  1. 2
      acupuncture-前台/src/utils/request.js

2
acupuncture-前台/src/utils/request.js

@ -40,7 +40,7 @@ service.interceptors.request.use(
// 判断白名单是否存在当前则携带参数在header
if (whiteList.includes(config.url)) {
if (localStorage.getItem("tenantId")) {
config.headers.TENANT_ID = localStorage.getItem("tenantId");
config.headers["TENANT-ID"] = localStorage.getItem("tenantId");
}
}
// get请求映射params参数

Loading…
Cancel
Save