@yeeyoon/library 3.1.4 → 3.1.8

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.
@@ -67,9 +67,8 @@ const Header = (props) => {
67
67
  const [systemUserInfo, setSystemUserInfo] = useState(null);
68
68
  const [tenants, setTenants] = useState([]);
69
69
  const [userId, setUserId] = useState([]);
70
- const [productListMenuDrawerShow, setProductListMenuDrawerShow] = useState(
71
- false
72
- );
70
+ const [productListMenuDrawerShow, setProductListMenuDrawerShow] =
71
+ useState(false);
73
72
  const [platformsModalShow, setPlatformsModalShow] = useState(false);
74
73
  const [avatarProps, setAvatarProps] = useState({});
75
74
  const [redirectUrl, setRedirectUrl] = useState('');
@@ -152,10 +151,15 @@ const Header = (props) => {
152
151
  const { success, data } = resp;
153
152
  if (success) {
154
153
  const { platforms, tenants, id, name } = data;
155
- if (!platforms.length || !tenants.length) {
154
+ if (
155
+ (!platforms.length || !tenants.length) &&
156
+ window.location.hostname.indexOf('profile') < 0
157
+ ) {
158
+ console.log(window.location.hostname.indexOf('profile'), 888);
156
159
  handleException && handleException();
157
160
  return;
158
161
  }
162
+ console.log(window.location.hostname.indexOf('profile'), 666);
159
163
 
160
164
  ls.set('X-Auth-Username', name);
161
165
  ls.set('X-Auth-Userid', id);
@@ -17,9 +17,9 @@ body {
17
17
  ::-webkit-scrollbar-track {
18
18
  border-radius: @border-radius-base !important;
19
19
  }
20
- // ::-webkit-scrollbar-corner {
21
- // background: transparent !important;
22
- // }
20
+ ::-webkit-scrollbar-corner {
21
+ background: transparent !important;
22
+ }
23
23
  // Button
24
24
  .ant-btn {
25
25
  padding: 0 22px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeeyoon/library",
3
- "version": "3.1.4",
3
+ "version": "3.1.8",
4
4
  "description": "宜云前端组件库和通用服务",
5
5
  "main": "index.js",
6
6
  "repository": {