@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