@tplc/business 0.1.4 → 0.1.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.
@@ -20,7 +20,7 @@
20
20
  height: transformValueUnit(photoSize),
21
21
  round: photoRound,
22
22
  src:
23
- userStore?.userInfo?.avatarUrl ||
23
+ userStore?.userInfo?.headImgUrl ||
24
24
  'https://lycs.eluying.com/material/icon/1/20240925185540/userPhoto.jpg',
25
25
  }"
26
26
  custom-class="mr-40rpx bg-#eee"
@@ -115,6 +115,7 @@ defineOptions({
115
115
  },
116
116
  })
117
117
  const userStore = uni.$lcb.userStore?.()
118
+ userStore?.getUser()
118
119
  withDefaults(defineProps<LcbUserTopProps>(), {
119
120
  photoSize: 100,
120
121
  paddingLeft: 35,
@@ -147,9 +148,9 @@ const getPhone = async (e) => {
147
148
  },
148
149
  })
149
150
  }
150
- const onAvatar = (avatarUrl) => {
151
+ const onAvatar = (headImgUrl) => {
151
152
  userStore?.updateUser({
152
- avatarUrl,
153
+ headImgUrl,
153
154
  })
154
155
  }
155
156
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],