@indfnd/common 1.0.127 → 1.0.128

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.128](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.127...v1.0.128) (2025-08-27)
6
+
5
7
  ### [1.0.127](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.126...v1.0.127) (2025-08-27)
6
8
 
7
9
 
@@ -1,5 +1,5 @@
1
1
  import { Button as Button$1, ButtonGroup as ButtonGroup$1, Input, Drawer as Drawer$1, Dropdown as Dropdown$1, Modal as Modal$1, Form, FormItem, Select as Select$1, Option, Row, Col, Menu, MenuItem, Submenu, Badge, DropdownMenu, DropdownItem, Tag, Header, Layout, Content, Spin, Poptip as Poptip$1, CheckboxGroup, Checkbox, RadioGroup, Radio, Card, Message, LoadingBar } from "view-design";
2
- import { isNil, getSessionStorage, putOssFileApi, formatDate as formatDate$1, useConfig, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, getPreviewUrlApi, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getPermissionCache, getLocalStorage, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, isEqual, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, listComTreeApi, listUserTreeApi, UC_ENUM, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, setSessionStorage, getAppListApi, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, getIndexDescCache, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
2
+ import { isNil, getSessionStorage, putOssFileApi, formatDate as formatDate$1, useConfig, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, getPreviewUrlApi, getToken, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getPermissionCache, getLocalStorage, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, isEqual, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, putOssFileUrl, getOssFileUrl, responseInterceptors, listComTreeApi, listUserTreeApi, UC_ENUM, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, setSessionStorage, getAppListApi, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, getIndexDescCache, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
3
3
  import Vue$1 from "vue";
4
4
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
5
5
  function getAugmentedNamespace(n) {
@@ -5460,7 +5460,7 @@ var lodash = { exports: {} };
5460
5460
  })(lodash, lodash.exports);
5461
5461
  var _ = lodash.exports;
5462
5462
  const name$1 = "@indfnd/common";
5463
- const version = "1.0.125";
5463
+ const version = "1.0.127";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -50873,12 +50873,19 @@ const __vue2_script$1l = {
50873
50873
  if (result.code == "1") {
50874
50874
  tempUrl = result.data;
50875
50875
  }
50876
+ const token = getToken() || sessionStorage.getItem("sso_token");
50877
+ console.log("openPreview token", token);
50876
50878
  console.log("tempUrl is", tempUrl);
50877
50879
  var instance = OpenSDK == null ? void 0 : OpenSDK.config({
50878
50880
  url: tempUrl,
50879
50881
  mount: document.getElementById(this.id)
50880
50882
  });
50881
50883
  console.log("instance-----", instance);
50884
+ instance.setToken({
50885
+ token,
50886
+ timeout: 10 * 60 * 1e3
50887
+ });
50888
+ console.log("wps instance", instance);
50882
50889
  },
50883
50890
  exportCurrentPage() {
50884
50891
  this.$emit("doExport");
@@ -66942,12 +66949,18 @@ const __vue2_script$5 = {
66942
66949
  if (result.code == "1") {
66943
66950
  tempUrl = result.data;
66944
66951
  }
66952
+ const token = getToken() || sessionStorage.getItem("sso_token");
66953
+ console.log("preview token", token);
66945
66954
  console.log("tempUrl is", tempUrl);
66946
66955
  var instance = OpenSDK == null ? void 0 : OpenSDK.config({
66947
66956
  url: tempUrl,
66948
66957
  mount: document.getElementById(this.id)
66949
66958
  });
66950
66959
  console.log("instance-----", instance);
66960
+ instance.setToken({
66961
+ token,
66962
+ timeout: 10 * 60 * 1e3
66963
+ });
66951
66964
  console.log("wps instance", instance);
66952
66965
  },
66953
66966
  onCancel() {
@@ -72247,7 +72260,9 @@ const store = {
72247
72260
  const install = function(Vue2, opts = { theme: "" }) {
72248
72261
  if (install.installed)
72249
72262
  return;
72250
- initWps();
72263
+ if (!location.pathname.includes("scyxweb")) {
72264
+ initWps();
72265
+ }
72251
72266
  const theme = opts.theme || getDefaultTheme();
72252
72267
  doChangeTheme(theme);
72253
72268
  if (!location.pathname.includes("scyxweb")) {