@yeeyoon/library 2.4.8 → 2.4.9

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.
@@ -47,6 +47,9 @@ const IconStyle = {
47
47
  display: 'inline-block',
48
48
  };
49
49
 
50
+ const DEFAULT_AVATAR_URL =
51
+ 'https://demo-yeeyoon-fm.oss-cn-zhangjiakou.aliyuncs.com/userCenter/userAvatar/user_avatar3.png';
52
+
50
53
  const Header = (props) => {
51
54
  const {
52
55
  token,
@@ -143,13 +146,7 @@ const Header = (props) => {
143
146
  setPlatforms(platforms);
144
147
  setTenants(tenants);
145
148
  setUserId(id);
146
- setAvatarProps(
147
- data.headUrl
148
- ? { src: data.headUrl }
149
- : {
150
- src: 'https://demo-yeeyoon-fm.oss-cn-zhangjiakou.aliyuncs.com/userCenter/userAvatar/user_avatar3.png',
151
- }
152
- );
149
+ setAvatarProps({ src: data.headUrl || DEFAULT_AVATAR_URL });
153
150
  currentProduct = tenants[0].applications || [];
154
151
  getProductList(id);
155
152
  } else {
package/lib/config/env.js CHANGED
@@ -1,4 +1,4 @@
1
- // const REACT_APP_ENV = REACT_APP_ENV || 'staging';
1
+ // const REACT_APP_ENV = REACT_APP_ENV || 'testing';
2
2
 
3
3
  const envApi = {
4
4
  // IAM
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeeyoon/library",
3
- "version": "2.4.8",
3
+ "version": "2.4.9",
4
4
  "description": "宜云前端组件库和通用服务",
5
5
  "main": "index.js",
6
6
  "repository": {