@jx3box/jx3box-common-ui 5.8.7 → 5.8.8

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": "5.8.7",
3
+ "version": "5.8.8",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@jx3box/jx3box-comment-ui": "^1.7.0",
34
- "@jx3box/jx3box-common": "^7.1.8",
34
+ "@jx3box/jx3box-common": "^7.2.4",
35
35
  "@jx3box/jx3box-data": "^1.9.9",
36
36
  "@jx3box/jx3box-editor": "^1.2.8",
37
37
  "axios": "^0.26.1",
@@ -59,10 +59,15 @@ export default {
59
59
  },
60
60
  };
61
61
  },
62
+ computed: {
63
+ client: function () {
64
+ return location.href.includes("classic") || location.href.includes("origin") ? "origin" : "std";
65
+ },
66
+ },
62
67
  methods: {
63
68
  get_comments() {
64
69
  if (!this.type || !this.sourceId) return;
65
- WikiComment.list(this.type, this.sourceId).then(
70
+ WikiComment.list(this.type, this.sourceId, this.client).then(
66
71
  (res) => {
67
72
  res = res.data;
68
73
  if (res.code === 200) {
@@ -115,7 +120,7 @@ export default {
115
120
  parent_id: parent_id,
116
121
  user_nickname: form.user_nickname || User.getInfo().name,
117
122
  content: form.content,
118
- })
123
+ }, this.client)
119
124
  .then(
120
125
  (res) => {
121
126
  res = res.data;