flame-plus 1.3.1 → 1.3.2

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.
@@ -3912,16 +3912,15 @@ const Ws = { class: "page-header" }, Ys = H({
3912
3912
  pageImport: () => {
3913
3913
  const p = document.createElement("input");
3914
3914
  p.type = "file", p.style.display = "none", document.body.appendChild(p), p.click(), p.addEventListener("change", () => {
3915
- const S = p.files[0];
3916
- var x = S.name.substring(S.name.lastIndexOf(".") + 1);
3915
+ const S = p.files[0], x = S.name.substring(S.name.lastIndexOf(".") + 1);
3917
3916
  if (!["xls", "xlsx", "et"].includes(x))
3918
3917
  return ee.warning("\u8BF7\u4E0A\u4F20 xls\u3001xlsx\u3001et \u683C\u5F0F\u7684\u6587\u4EF6\uFF01"), document.body.removeChild(p), !1;
3918
+ S == null && ee.error("\u672A\u8BFB\u53D6\u5230\u5F85\u4E0A\u4F20\u7684\u6587\u4EF6");
3919
3919
  const k = new FormData();
3920
3920
  k.append("file", S), Q.flameAxios({
3921
- headers: { "Content-Type": "multipart/form-data" },
3921
+ headers: { "Content-Type": "multipart/form-data", token: Q.token },
3922
3922
  method: "post",
3923
3923
  url: `/spark-resource-service/upload_file?source=tencent&token=${Q.token}`,
3924
- headers: { token: Q.token },
3925
3924
  data: k
3926
3925
  }).then((E) => {
3927
3926
  E.result || ee.success("\u4E0A\u4F20\u5931\u8D25\uFF01"), Q.flameRequest({
@@ -4172,7 +4171,7 @@ const Ws = { class: "page-header" }, Ys = H({
4172
4171
  ]);
4173
4172
  };
4174
4173
  }
4175
- }), hr = /* @__PURE__ */ Te(Ys, [["__scopeId", "data-v-7ec61693"]]);
4174
+ }), hr = /* @__PURE__ */ Te(Ys, [["__scopeId", "data-v-6d9444f0"]]);
4176
4175
  const Vs = { class: "page-header" }, Ks = { class: "page-search" }, Zs = H({
4177
4176
  __name: "flmExportPage",
4178
4177
  props: {