@das-fed/utils 7.0.7-hot.14 → 7.0.7-hot.15

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.
Files changed (60) hide show
  1. package/api-services/i18n/index.js.gz +0 -0
  2. package/api-services/index.js +908 -890
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/index.js +743 -725
  5. package/api-services/modules/app-manage/index.js.gz +0 -0
  6. package/api-services/modules/authentication/index.js +743 -725
  7. package/api-services/modules/authentication/index.js.gz +0 -0
  8. package/api-services/modules/bems/index.js.gz +0 -0
  9. package/api-services/modules/contract/index.js +743 -725
  10. package/api-services/modules/contract/index.js.gz +0 -0
  11. package/api-services/modules/duty-manage/index.js.gz +0 -0
  12. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  13. package/api-services/modules/file/index.js.gz +0 -0
  14. package/api-services/modules/gateway-edge/index.js +743 -725
  15. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  16. package/api-services/modules/index.js.gz +0 -0
  17. package/api-services/modules/iot/index.js.gz +0 -0
  18. package/api-services/modules/justauth/index.js +744 -726
  19. package/api-services/modules/justauth/index.js.gz +0 -0
  20. package/api-services/modules/knowledge/index.js.gz +0 -0
  21. package/api-services/modules/link/index.js +725 -743
  22. package/api-services/modules/link/index.js.gz +0 -0
  23. package/api-services/modules/permission/index.js.gz +0 -0
  24. package/api-services/modules/platformManage/index.js +752 -734
  25. package/api-services/modules/platformManage/index.js.gz +0 -0
  26. package/api-services/modules/portal/index.js +725 -743
  27. package/api-services/modules/portal/index.js.gz +0 -0
  28. package/api-services/modules/space-manage/index.js +725 -743
  29. package/api-services/modules/space-manage/index.js.gz +0 -0
  30. package/api-services/modules/super-admin/index.js +727 -745
  31. package/api-services/modules/super-admin/index.js.gz +0 -0
  32. package/api-services/modules/supplier/index.js.gz +0 -0
  33. package/api-services/modules/supplychain-manage/index.js +743 -725
  34. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  35. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  36. package/api-services/modules/tool/index.js.gz +0 -0
  37. package/api-services/src/create-service/index.js.gz +0 -0
  38. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  39. package/common-info/index.js.gz +0 -0
  40. package/common-info/set-personal-info/index.d.ts +1 -1
  41. package/common-info/set-personal-info/index.js +10 -10
  42. package/common-info/set-personal-info/index.js.gz +0 -0
  43. package/common-tools/extract-file-name/index.js.gz +0 -0
  44. package/common-tools/get-url-params/index.js.gz +0 -0
  45. package/create-api-service/index.js +717 -699
  46. package/create-api-service/index.js.gz +0 -0
  47. package/create-api-service/sso/index.js +177 -178
  48. package/create-api-service/sso/index.js.gz +0 -0
  49. package/curring-http/index.js.gz +0 -0
  50. package/directive/auth/index.js.gz +0 -0
  51. package/hooks/use-get-auth/index.js.gz +0 -0
  52. package/nextTiken/index.js.gz +0 -0
  53. package/package.json +4 -4
  54. package/pinyin-first-character/index.js.gz +0 -0
  55. package/process-engine-info/index.js +8 -7
  56. package/style/index.js.gz +0 -0
  57. package/token-tools/index.js +80 -8
  58. package/token-tools/index.js.gz +0 -0
  59. package/use-low-code/index.js.gz +0 -0
  60. package/webSocket-service/index.js.gz +0 -0
Binary file
@@ -2,4 +2,4 @@
2
2
  * 获取用户信息存入sessionStorage
3
3
  * @param token token
4
4
  */
5
- export declare const setPersonalInfo: (token: string) => any;
5
+ export declare const setPersonalInfo: (token?: string) => any;
@@ -1712,25 +1712,25 @@ const {
1712
1712
  formToJSON: Gn,
1713
1713
  getAdapter: Qn,
1714
1714
  mergeConfig: Zn
1715
- } = E, Yn = async (e) => {
1716
- var n;
1715
+ } = E, Yn = async (e = "") => {
1716
+ var r;
1717
1717
  const t = {
1718
1718
  personalInfo: "/api/personal-center/personal-server/v1/info"
1719
+ }, n = {
1720
+ "X-Origin": location.origin,
1721
+ "Accept-Language": Ze.value
1719
1722
  };
1723
+ e && (n.Authorization = `Bearer ${e}`);
1720
1724
  try {
1721
- const r = await E.create().get(t.personalInfo, {
1725
+ const s = await E.create().get(t.personalInfo, {
1722
1726
  baseURL: et().baseURL,
1723
1727
  params: {
1724
- project: (n = Ye()) == null ? void 0 : n.id,
1728
+ project: (r = Ye()) == null ? void 0 : r.id,
1725
1729
  timestamp: (/* @__PURE__ */ new Date()).getTime()
1726
1730
  },
1727
- headers: {
1728
- Authorization: `Bearer ${e}`,
1729
- "X-Origin": location.origin,
1730
- "Accept-Language": Ze.value
1731
- }
1731
+ headers: n
1732
1732
  });
1733
- r != null && r.data && sessionStorage.setItem("userInfo", JSON.stringify(r.data));
1733
+ s != null && s.data && sessionStorage.setItem("userInfo", JSON.stringify(s.data));
1734
1734
  } catch {
1735
1735
  }
1736
1736
  };