@yeeyoon/library 3.2.2 → 3.2.3

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.
@@ -48,9 +48,11 @@ function InfoCart(props) {
48
48
  };
49
49
  useEffect(() => {
50
50
  getCardData();
51
- }, [baseMsg.userId]);
51
+ }, [baseMsg.userId, baseMsg.id]);
52
52
  const getCardData = async () => {
53
- const resp = await queryOidcUserCardData({ id: baseMsg.userId });
53
+ const resp = await queryOidcUserCardData({
54
+ id: baseMsg.userId || baseMsg?.id,
55
+ });
54
56
  const { success, data } = resp;
55
57
  if (success) {
56
58
  if (data.content.length > 0) {
@@ -75,12 +77,12 @@ function InfoCart(props) {
75
77
  height="50px"
76
78
  preview={false}
77
79
  style={{ borderRadius: '5px' }}
78
- src={baseMsg?.headUrl}
80
+ src={baseMsg?.headUrl || baseMsg?.icon}
79
81
  />
80
82
  <div className={styles['info-cart-np']}>
81
83
  <span>{baseMsg?.name}</span>
82
84
  <span style={{ marginTop: '6px', fontSize: '12px' }}>
83
- {(baseMsg?.mobile || '').replace(reg, '$1****$2')}
85
+ {(baseMsg?.mobile || baseMsg?.phone || '').replace(reg, '$1****$2')}
84
86
  </span>
85
87
  </div>
86
88
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeeyoon/library",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "description": "宜云前端组件库和通用服务",
5
5
  "main": "index.js",
6
6
  "repository": {