@jx3box/jx3box-vue3-ui 0.9.16 → 0.9.18

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-vue3-ui",
3
- "version": "0.9.16",
3
+ "version": "0.9.18",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@element-plus/icons-vue": "^2.1.0",
29
- "@jx3box/jx3box-common": "^8.5.2",
29
+ "@jx3box/jx3box-common": "^8.6.5",
30
30
  "@jx3box/jx3box-data": "^3.7.0",
31
31
  "@jx3box/jx3box-emotion": "^1.2.8",
32
32
  "@jx3box/jx3box-macro": "^1.0.1",
package/service/fav.js CHANGED
@@ -17,11 +17,11 @@ function delFav(id) {
17
17
 
18
18
  // 稍后再看
19
19
  function addWatchLater(data) {
20
- return $n.post(`api/next2/userdata/favorite/item`, data)
20
+ return $n.post(`api/next2/userdata/watch-later/item`, data)
21
21
  }
22
22
 
23
23
  function delWatchLater(params) {
24
- return $n.delete(`api/next2/userdata/favorite/item`, { params })
24
+ return $n.delete(`api/next2/userdata/watch-later/item`, { params })
25
25
  }
26
26
 
27
27
  export { hasFav, addFav, delFav, addWatchLater, delWatchLater };
@@ -33,6 +33,10 @@ export default {
33
33
  type: String,
34
34
  default: "",
35
35
  },
36
+ contentId: {
37
+ type: Number,
38
+ default: 0,
39
+ }
36
40
  },
37
41
  data: function () {
38
42
  return {
@@ -57,6 +61,7 @@ export default {
57
61
  title: this.title,
58
62
  author_id: this.authorId,
59
63
  banner: this.banner,
64
+ content_meta_id: this.contentId,
60
65
  }
61
66
  }
62
67
  },
@@ -76,7 +81,7 @@ export default {
76
81
  },
77
82
  rmWatchLater: function () {
78
83
  // remove watch later
79
- delWatchLater(omit(this.data, ['title'])).then(() => {
84
+ delWatchLater(omit(this.data, ['title', 'author_id', 'banner', 'content_meta_id'])).then(() => {
80
85
  this.favorite = false;
81
86
  });
82
87
  },
@@ -31,7 +31,7 @@
31
31
  :client="finalClient"
32
32
  />
33
33
  <Share :postId="postId" :postType="postType" :client="client" />
34
- <watch-later :category="postType" :title="postTitle" :author-id="authorId" :banner="banner"></watch-later>
34
+ <watch-later :category="postType" :title="postTitle" :author-id="authorId" :banner="banner" :content-id="postId"></watch-later>
35
35
  </div>
36
36
  <div class="w-thx-records">
37
37
  <boxcoin-records :postId="postId" :postType="postType" :postClient="finalClient" :cacheRecord="cacheRecord"