@jx3box/jx3box-common-ui 9.0.26 → 9.0.28

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.26",
3
+ "version": "9.0.28",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,10 +30,10 @@
30
30
  "last 2 versions"
31
31
  ],
32
32
  "dependencies": {
33
- "@jx3box/jx3box-comment-ui": "^1.9.9",
34
- "@jx3box/jx3box-common": "^8.5.2",
35
- "@jx3box/jx3box-data": "^3.7.0",
36
- "@jx3box/jx3box-editor": "^2.2.16",
33
+ "@jx3box/jx3box-comment-ui": "^2.0.2",
34
+ "@jx3box/jx3box-common": "^8.5.4",
35
+ "@jx3box/jx3box-data": "^3.7.6",
36
+ "@jx3box/jx3box-editor": "^2.2.23",
37
37
  "@jx3box/reporter": "^0.0.4",
38
38
  "axios": "^0.26.1",
39
39
  "dayjs": "^1.11.0",
@@ -5,7 +5,7 @@
5
5
  <img svg-inline src="../../assets/img/leftsidebar/fans.svg" />
6
6
  <span>粉丝榜</span>
7
7
  </div>
8
- <div class="f-avatar">
8
+ <div class="f-avatar" v-if="list.length">
9
9
  <el-tooltip
10
10
  class="item"
11
11
  effect="dark"
@@ -61,7 +61,7 @@ export default {
61
61
  });
62
62
 
63
63
  getFansList(this.uid, this.fansLimit).then((res) => {
64
- this.list = res.data.data.list;
64
+ this.list = res.data.data.list || [];
65
65
  });
66
66
  },
67
67
  showAvatar,
@@ -40,7 +40,7 @@ export default {
40
40
  },
41
41
  computed: {
42
42
  btnText() {
43
- return this.subscribed ? "已订阅" : "订阅";
43
+ return this.subscribed ? "已关注" : "关注";
44
44
  },
45
45
  btnType() {
46
46
  return !this.subscribed ? "info" : "warning";
@@ -87,7 +87,7 @@ export default {
87
87
  subscribeAuthor({ id: this.uid, data: { title: this.data?.display_name } })
88
88
  .then((res) => {
89
89
  this.subscribed = true;
90
- this.$message.success("订阅成功");
90
+ this.$message.success("关注成功");
91
91
  })
92
92
  .catch((err) => {
93
93
  console.log(err);