@zero-library/common 2.1.0 → 2.1.1

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/dist/index.cjs.js CHANGED
@@ -988,7 +988,6 @@ function getSignPath() {
988
988
 
989
989
  // src/utils/request.ts
990
990
  var OK = 200;
991
- var OK2 = "S0000";
992
991
  var ERROR = 500;
993
992
  var MISSING_PARAMETER = 400;
994
993
  var UNAUTHORIZED = 401;
@@ -1028,7 +1027,7 @@ axios__default.default.interceptors.response.use(
1028
1027
  if (isBlob(response.data)) {
1029
1028
  return response;
1030
1029
  }
1031
- if (response.data?.code !== OK && response.data?.code !== OK2) {
1030
+ if (response.data?.code !== OK) {
1032
1031
  const isPermission = response.data?.code === PERMISSION_DENIED;
1033
1032
  if (response.config?.showError !== false) {
1034
1033
  showMessage({
@@ -1351,7 +1350,7 @@ var PdfPreview_default = ({ password, fileUrl, pageNo = 1, scale = 1, isHasThumb
1351
1350
  }, 500);
1352
1351
  onSetPageNo?.(currentPage + 1);
1353
1352
  }, [currentPage]);
1354
- return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: embedRef, className: styles_module_default.nsPreviewPdf, children: /* @__PURE__ */ jsxRuntime.jsx(core$1.Worker, { workerUrl: `/uc/pdf/pdf.worker.min.js`, children: /* @__PURE__ */ jsxRuntime.jsxs(antd.Splitter, { onResize: setSizes, children: [
1353
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: embedRef, className: styles_module_default.nsPreviewPdf, children: /* @__PURE__ */ jsxRuntime.jsx(core$1.Worker, { workerUrl: `logosdata.cn/public/pdf/pdf.worker.min.js`, children: /* @__PURE__ */ jsxRuntime.jsxs(antd.Splitter, { onResize: setSizes, children: [
1355
1354
  isHasThumbnails && /* @__PURE__ */ jsxRuntime.jsx(antd.Splitter.Panel, { resizable: false, size: sizes[0], min: 250, max: 500, collapsible: true, children: /* @__PURE__ */ jsxRuntime.jsx(Thumbnails, {}) }),
1356
1355
  /* @__PURE__ */ jsxRuntime.jsx(antd.Splitter.Panel, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "height-full", children: [
1357
1356
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1372,13 +1371,13 @@ var PdfPreview_default = ({ password, fileUrl, pageNo = 1, scale = 1, isHasThumb
1372
1371
  // 启用 CMap 支持,解决中文字体显示问题
1373
1372
  // cMapUrl: 指定 CMap 文件的 URL,用于处理非拉丁字符(如中文)
1374
1373
  // cMapPacked: 使用压缩的 CMap 文件以提高性能
1375
- cMapUrl: "/uc/pdf/pdfjs-dist@3.2.146/cmaps/",
1374
+ cMapUrl: "logosdata.cn/public/pdf/pdfjs-dist@3.2.146/cmaps/",
1376
1375
  // 使用可用的源
1377
1376
  cMapPacked: true,
1378
1377
  // 禁用字体子集化,确保完整字体加载
1379
1378
  disableFontFace: false,
1380
1379
  // 启用标准字体支持
1381
- standardFontDataUrl: "/uc/pdf/pdfjs-dist@3.2.146/standard_fonts/",
1380
+ standardFontDataUrl: "logosdata.cn/public/pdf/pdfjs-dist@3.2.146/standard_fonts/",
1382
1381
  // 设置字体回退策略
1383
1382
  fallbackFontName: "Helvetica"
1384
1383
  });
@@ -5278,7 +5277,6 @@ exports.MarkdownEditor = MarkdownEditor_default;
5278
5277
  exports.MarkdownPreview = MarkdownPreview_default;
5279
5278
  exports.NOT_FOUND = NOT_FOUND;
5280
5279
  exports.OK = OK;
5281
- exports.OK2 = OK2;
5282
5280
  exports.PERMISSION_DENIED = PERMISSION_DENIED;
5283
5281
  exports.PdfPreview = PdfPreview_default;
5284
5282
  exports.RenderMarkdown = RenderMarkdown_default;