@jx3box/jx3box-common-ui 9.0.21 → 9.0.22

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "9.0.21",
3
+ "version": "9.0.22",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -82,8 +82,8 @@ export default {
82
82
  return JSON.parse(localStorage.getItem(key));
83
83
  })?.filter((alt) => !this.isExpired(alt.created_at));
84
84
 
85
- // 如果当前号码不在马甲列表中,添加到列表中
86
- if (!this.alternate.find((alt) => alt.uid == this.profile.uid)) {
85
+ // 如果当前没有马甲,添加当前登录用户
86
+ if (!this.alternate?.length) {
87
87
  const data = {
88
88
  uid: this.profile.uid,
89
89
  name: this.profile.name,