matrix_components 2.0.335 → 2.0.336

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.
@@ -76891,18 +76891,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76891
76891
  var _a3, _b;
76892
76892
  const nv = new1 || new2;
76893
76893
  if (nv) {
76894
- console.log("***1-1***", nv);
76895
76894
  if (nv.startsWith(getBaseUrl())) {
76896
- console.log("***2-1***", nv);
76897
76895
  let _tmp = nv.split("/");
76898
76896
  _tmp = _tmp[_tmp.length - 1];
76899
76897
  if (isNotNull(_tmp)) {
76900
- console.log("***3-1***", _tmp);
76901
76898
  if (_tmp.indexOf(".") !== -1) {
76902
- console.log("***4-1***", _tmp);
76903
76899
  _url.value = nv;
76904
76900
  } else {
76905
- console.log("***4-2***", _tmp);
76906
76901
  const res = await getFilePathByIds(_tmp) || "";
76907
76902
  if ((res == null ? void 0 : res.length) && ((_a3 = res[0]) == null ? void 0 : _a3.filePath)) {
76908
76903
  const path = res[0].filePath;
@@ -76913,19 +76908,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76913
76908
  _url.value = "";
76914
76909
  }
76915
76910
  } else if (nv.startsWith("/martrix/")) {
76916
- console.log("***2-2***", nv);
76917
76911
  _url.value = nv;
76918
76912
  } else {
76919
76913
  let _tmp = nv.split("/");
76920
76914
  _tmp = _tmp[_tmp.length - 1];
76921
- console.log("***2-3***", _tmp);
76922
76915
  if (isNotNull(_tmp)) {
76923
- console.log("***3-2***", _tmp);
76924
76916
  if (_tmp.indexOf(".") !== -1) {
76925
- console.log("***4-1***", _tmp);
76926
76917
  _url.value = getBaseUrl() + _tmp;
76927
76918
  } else {
76928
- console.log("***4-2***", _tmp);
76929
76919
  const res = await getFilePathByIds(_tmp) || "";
76930
76920
  if ((res == null ? void 0 : res.length) && ((_b = res[0]) == null ? void 0 : _b.filePath)) {
76931
76921
  const path = res[0].filePath;
@@ -76933,12 +76923,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76933
76923
  }
76934
76924
  }
76935
76925
  } else {
76936
- console.log("***3-3***", _tmp);
76937
76926
  _url.value = "";
76938
76927
  }
76939
76928
  }
76940
76929
  } else {
76941
- console.log("***1-2***", nv);
76942
76930
  _url.value = "";
76943
76931
  }
76944
76932
  },
@@ -76950,13 +76938,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76950
76938
  }
76951
76939
  }
76952
76940
  async function getFilePathByIds(id) {
76953
- console.log("----a----", id);
76954
76941
  if (props.apiUrl.method === "get") {
76955
- console.log("----a1----", props.apiUrl.url, { ...props.apiUrl.params, paramkey: id });
76956
- return await get(props.apiUrl.url, { ...props.apiUrl.params, paramkey: id });
76942
+ return await get(props.apiUrl.url, { ...props.apiUrl.params, [props.apiUrl.params.paramkey]: id });
76957
76943
  } else if (props.apiUrl.method === "post") {
76958
- console.log("----a2----", props.apiUrl.url, { ...props.apiUrl.params, paramkey: id });
76959
- return await post(props.apiUrl.url, { ...props.apiUrl.params, paramkey: id });
76944
+ return await post(props.apiUrl.url, { ...props.apiUrl.params, [props.apiUrl.params.paramkey]: id });
76960
76945
  }
76961
76946
  }
76962
76947
  return (_ctx, _cache) => {
@@ -77000,7 +76985,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
77000
76985
  };
77001
76986
  }
77002
76987
  });
77003
- const NsImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c43f7e38"]]);
76988
+ const NsImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b1bc4c7f"]]);
77004
76989
  NsImage.install = (app2) => {
77005
76990
  app2.component(NsImage.name, NsImage);
77006
76991
  };