mooho-base-admin-plus 2.10.21 → 2.10.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/history.md
CHANGED
|
@@ -192,3 +192,5 @@ mooho-base-admin-plus@2.10.18 - 优化表格、表单、筛选项默认值
|
|
|
192
192
|
mooho-base-admin-plus@2.10.19 - 解决标签控件值为null报错的bug
|
|
193
193
|
mooho-base-admin-plus@2.10.20 - 修复上一版本bug
|
|
194
194
|
mooho-base-admin-plus@2.10.21 - 请求头增加后端请求主机地址,避免因反向代理引发无法获取真实地址的问题
|
|
195
|
+
mooho-base-admin-plus@2.10.22 - 修复上一版本的bug
|
|
196
|
+
mooho-base-admin-plus@2.10.23 - 修复上一版本的bug
|
|
@@ -19515,7 +19515,7 @@ service.interceptors.request.use(
|
|
|
19515
19515
|
let r = window.$mode === "development" ? Setting.apiBaseURL.dev : Setting.apiBaseURL.prd;
|
|
19516
19516
|
a.url = r + a.url;
|
|
19517
19517
|
let o = r;
|
|
19518
|
-
r.startsWith("/") && (o = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port), a.headers["Request-Host"] = o;
|
|
19518
|
+
r.startsWith("/") && (o = window.location.protocol + "//" + window.location.hostname, (window.location.port || "").trim() && (o = o + ":" + window.location.port), o = o + r), a.headers["Request-Host"] = o;
|
|
19519
19519
|
const s = util$2.cookies.get("token");
|
|
19520
19520
|
return a.headers.Authorization = "Bearer " + s, router && router.currentRoute && router.currentRoute.value && (a.headers["Frontend-Url"] = router.currentRoute.value.path), a;
|
|
19521
19521
|
},
|