@chaoswise/ui 2.7.4 → 2.7.5

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.
@@ -10,7 +10,6 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
10
10
  import React, { useEffect, useState } from 'react';
11
11
  import TenantList from './TenantList';
12
12
  import TenantTree from './TenantTree';
13
- import axios from 'axios';
14
13
  var localOptionsMap = {
15
14
  zh: "title",
16
15
  zh_CN: "title",
@@ -53,31 +52,11 @@ function UserSetting(_ref) {
53
52
  if (tenantList) {
54
53
  return;
55
54
  }
56
- axios.get('/douc/api/v1/sso/getEnableAccounts').then(function (res) {
57
- if (res.status === 200) {
58
- if (res.data) {
59
- if (res.data.code === 100000) {
60
- var _data = res.data.data;
61
- setMyTenantList(_data);
62
- }
63
- }
64
- }
65
- });
66
55
  }, [tenantList]);
67
56
  useEffect(function () {
68
57
  if (tenantTree) {
69
58
  return;
70
59
  }
71
- axios.get('/douc/api/v1/sso/getEnableChildAccounts').then(function (res) {
72
- if (res.status === 200) {
73
- if (res.data) {
74
- if (res.data.code === 100000) {
75
- var _data2 = res.data.data;
76
- setMyTenantTree(_data2);
77
- }
78
- }
79
- }
80
- });
81
60
  }, [tenantTree]);
82
61
  var onItemClick = function onItemClick(eventKey, currentKey, props) {
83
62
  if (eventKey === 'switch-tenant' && !onTenantChange) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaoswise/ui",
3
- "version": "2.7.4",
3
+ "version": "2.7.5",
4
4
  "description": "公共UI库",
5
5
  "keywords": [
6
6
  "ui",
@@ -76,12 +76,11 @@
76
76
  "@ant-design/icons": "^4.8.3",
77
77
  "@antv/g6": "^4.3.0",
78
78
  "@chaoswise/ace": "^1.4.13",
79
- "@chaoswise/utils": "^0.0.37",
79
+ "@chaoswise/utils": "^0.0.38",
80
80
  "@icon-park/react": "^1.4.2",
81
81
  "@rc-component/mutate-observer": "^1.1.0",
82
82
  "ant-design-draggable-modal": "0.0.16",
83
83
  "antd": "^3.26.19",
84
- "axios": "^0.21.1",
85
84
  "classnames": "^2.2.6",
86
85
  "core-js": "^3.21.1",
87
86
  "echarts": "^5.1.2",
@@ -149,5 +148,6 @@
149
148
  "publishConfig": {
150
149
  "access": "public"
151
150
  },
152
- "license": "MIT"
151
+ "license": "MIT",
152
+ "gitHead": "acedace155ec9d7b6f1f148a7dc8d1b9222001b4"
153
153
  }