@jx3box/jx3box-ui 2.2.8 → 2.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-ui",
3
- "version": "2.2.8",
3
+ "version": "2.2.9",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/service/fav.js CHANGED
@@ -5,8 +5,8 @@ function hasFav(post_type, post_id) {
5
5
  return res.data.data;
6
6
  });
7
7
  }
8
- function addFav(post_type, post_id, post_title) {
9
- return $next().post(`api/article/favorites/add/${post_id}/${post_type}`, { post_title }).then((res) => {
8
+ function addFav(post_type, post_id, post_title, author_id) {
9
+ return $next().post(`api/article/favorites/add/${post_id}/${post_type}`, { post_title, author_id }).then((res) => {
10
10
  return res.data.data;
11
11
  });
12
12
  }
@@ -39,6 +39,10 @@ export default {
39
39
  type: Boolean,
40
40
  default: false,
41
41
  },
42
+ author_id: {
43
+ type: [String, Number],
44
+ default: "",
45
+ },
42
46
  },
43
47
  data: function () {
44
48
  return {
@@ -46,6 +46,10 @@ export default {
46
46
  type: String,
47
47
  default: "",
48
48
  },
49
+ author_id: {
50
+ type: [String, Number],
51
+ default: "",
52
+ },
49
53
  },
50
54
  data() {
51
55
  return {
@@ -94,7 +98,8 @@ export default {
94
98
  type: this.type,
95
99
  id: this.id,
96
100
  data: {
97
- title: this.title
101
+ title: this.title,
102
+ author_id: this.author_id,
98
103
  }
99
104
  }
100
105
  },