mooho-base-admin-plus 2.10.19 → 2.10.21

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
@@ -190,3 +190,5 @@ mooho-base-admin-plus@2.10.16 - 修复上一版本bug
190
190
  mooho-base-admin-plus@2.10.17 - 内嵌表格默认增加行数可配置
191
191
  mooho-base-admin-plus@2.10.18 - 优化表格、表单、筛选项默认值
192
192
  mooho-base-admin-plus@2.10.19 - 解决标签控件值为null报错的bug
193
+ mooho-base-admin-plus@2.10.20 - 修复上一版本bug
194
+ mooho-base-admin-plus@2.10.21 - 请求头增加后端请求主机地址,避免因反向代理引发无法获取真实地址的问题
@@ -19514,8 +19514,10 @@ service.interceptors.request.use(
19514
19514
  store.commit("admin/loader/start");
19515
19515
  let r = window.$mode === "development" ? Setting.apiBaseURL.dev : Setting.apiBaseURL.prd;
19516
19516
  a.url = r + a.url;
19517
- const o = util$2.cookies.get("token");
19518
- return a.headers.Authorization = "Bearer " + o, router && router.currentRoute && router.currentRoute.value && (a.headers["Frontend-Url"] = router.currentRoute.value.path), a;
19517
+ let o = r;
19518
+ r.startsWith("/") && (o = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port), a.headers["Request-Host"] = o;
19519
+ const s = util$2.cookies.get("token");
19520
+ return a.headers.Authorization = "Bearer " + s, router && router.currentRoute && router.currentRoute.value && (a.headers["Frontend-Url"] = router.currentRoute.value.path), a;
19519
19521
  },
19520
19522
  (a) => {
19521
19523
  console.log(a), Promise.reject(a);
@@ -42287,16 +42289,18 @@ function _sfc_render$o(a, r, o, s, l, u) {
42287
42289
  class: normalizeClass({ error: l.compareData != null && a.parseData(l.data, F.code) != a.parseData(l.compareData, F.code) }),
42288
42290
  innerHTML: a.showData(l.data, F)
42289
42291
  }, null, 10, _hoisted_7$2)
42290
- ], 8, _hoisted_6$3)) : F.controlType === "Tag" ? (openBlock(), createBlock(f, {
42291
- key: 2,
42292
- color: a.getTagColor(F, a.parseData(l.data, F.code)),
42293
- type: F.source == "default" ? null : F.source
42294
- }, {
42295
- default: withCtx(() => [
42296
- createTextVNode(toDisplayString$2(a.showData(l.data, F)), 1)
42297
- ]),
42298
- _: 2
42299
- }, 1032, ["color", "type"])) : F.controlType === "Description" ? (openBlock(), createElementBlock("div", {
42292
+ ], 8, _hoisted_6$3)) : F.controlType === "Tag" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
42293
+ a.parseData(l.data, F.code) != null ? (openBlock(), createBlock(f, {
42294
+ key: 0,
42295
+ color: a.getTagColor(F, a.parseData(l.data, F.code)),
42296
+ type: F.source == "default" ? null : F.source
42297
+ }, {
42298
+ default: withCtx(() => [
42299
+ createTextVNode(toDisplayString$2(a.showData(l.data, F)), 1)
42300
+ ]),
42301
+ _: 2
42302
+ }, 1032, ["color", "type"])) : createCommentVNode("", !0)
42303
+ ], 64)) : F.controlType === "Description" ? (openBlock(), createElementBlock("div", {
42300
42304
  key: 3,
42301
42305
  innerHTML: a.showMultiLine(F.description)
42302
42306
  }, null, 8, _hoisted_8$2)) : createCommentVNode("", !0),
@@ -44051,16 +44055,18 @@ function _sfc_render$n(a, r, o, s, l, u) {
44051
44055
  title: Y.isSingleLine ? a.showData(u.rowData(q, re), Y) : null,
44052
44056
  class: normalizeClass({ "single-line": Y.isSingleLine }),
44053
44057
  innerHTML: a.showData(u.rowData(q, re), Y)
44054
- }, null, 10, _hoisted_3$9)) : Y.controlType === "Tag" ? (openBlock(), createBlock(T, {
44055
- key: 2,
44056
- color: a.getTagColor(Y, a.parseData(u.rowData(q, re), Y.code)),
44057
- type: Y.source == "default" ? null : Y.source
44058
- }, {
44059
- default: withCtx(() => [
44060
- createTextVNode(toDisplayString$2(a.showData(u.rowData(q, re), Y)), 1)
44061
- ]),
44062
- _: 2
44063
- }, 1032, ["color", "type"])) : Y.controlType === "Hyperlink" ? (openBlock(), createElementBlock("a", {
44058
+ }, null, 10, _hoisted_3$9)) : Y.controlType === "Tag" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
44059
+ a.parseData(u.rowData(q, re), Y.code) != null ? (openBlock(), createBlock(T, {
44060
+ key: 0,
44061
+ color: a.getTagColor(Y, a.parseData(u.rowData(q, re), Y.code)),
44062
+ type: Y.source == "default" ? null : Y.source
44063
+ }, {
44064
+ default: withCtx(() => [
44065
+ createTextVNode(toDisplayString$2(a.showData(u.rowData(q, re), Y)), 1)
44066
+ ]),
44067
+ _: 2
44068
+ }, 1032, ["color", "type"])) : createCommentVNode("", !0)
44069
+ ], 64)) : Y.controlType === "Hyperlink" ? (openBlock(), createElementBlock("a", {
44064
44070
  key: 3,
44065
44071
  href: a.getTemplateReplace(u.rowData(q, re), Y.hyperlink),
44066
44072
  target: Y.isNewWindow ? "_blank" : ""
@@ -44639,7 +44645,7 @@ function _sfc_render$n(a, r, o, s, l, u) {
44639
44645
  ], 2)
44640
44646
  ], 2);
44641
44647
  }
44642
- const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-4273ba1a"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44648
+ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-cffae061"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44643
44649
  __proto__: null,
44644
44650
  default: viewTable
44645
44651
  }, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {