@jx3box/jx3box-vue3-ui 0.5.2 → 0.5.4

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.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -57,12 +57,12 @@ export default {
57
57
  },
58
58
  actions() {
59
59
  return [
60
- {
61
- label: "发送私信",
62
- action: () => {
63
- window.open("/dashboard/letter?receiver=" + this.uid);
64
- },
65
- },
60
+ // {
61
+ // label: "发送私信",
62
+ // action: () => {
63
+ // window.open("/dashboard/letter?receiver=" + this.uid);
64
+ // },
65
+ // },
66
66
  {
67
67
  label: "取消关注",
68
68
  action: () => {
@@ -4,13 +4,14 @@
4
4
  <template v-if="data">
5
5
  <div class="u-interact">
6
6
  <AuthorFollow style="margin-right: 8px;" :uid="uid" />
7
- <AuthorGift :uid="uid" />
7
+ <!-- <AuthorGift :uid="uid" /> -->
8
+ <el-button icon="Message" class="u-btn" @click="onMessage">私信</el-button>
8
9
  </div>
9
10
  <!-- <AuthorMsg :uid="uid" /> -->
10
11
  <AuthorLink class="u-block u-links" :uid="uid" :data="data" />
11
12
  <AuthorMedals class="u-block u-trophy" :uid="uid" />
12
13
  <AuthorTeams class="u-block u-teams" :uid="uid" />
13
- <AuthorFans class="u-block u-fans" :uid="uid" />
14
+ <!-- <AuthorFans class="u-block u-fans" :uid="uid" /> -->
14
15
  <slot></slot>
15
16
  <AuthorPosts class="u-block u-posts" :uid="uid" />
16
17
  </template>
@@ -22,8 +23,8 @@ import AuthorInfo from "../author/AuthorInfo.vue";
22
23
  import AuthorLink from "../author/AuthorLink.vue";
23
24
  import AuthorFollow from "../author/AuthorFollow.vue";
24
25
  // import AuthorMsg from "./author/AuthorMsg.vue";
25
- import AuthorGift from "../author/AuthorGift.vue";
26
- import AuthorFans from "../author/AuthorFans.vue";
26
+ // import AuthorGift from "../author/AuthorGift.vue";
27
+ // import AuthorFans from "../author/AuthorFans.vue";
27
28
  import AuthorMedals from "../author/AuthorMedals.vue";
28
29
  import AuthorTeams from "../author/AuthorTeams.vue";
29
30
  import AuthorPosts from "../author/AuthorPosts.vue";
@@ -39,17 +40,20 @@ export default {
39
40
  installModules: function (data) {
40
41
  this.data = data;
41
42
  },
43
+ onMessage: function () {
44
+ window.open("/dashboard/letter?receiver=" + this.uid, "_blank");
45
+ },
42
46
  },
43
47
  components: {
44
48
  AuthorInfo,
45
49
  AuthorLink,
46
50
  AuthorFollow,
47
51
  // AuthorMsg,
48
- AuthorGift,
52
+ // AuthorGift,
49
53
  AuthorMedals,
50
54
  AuthorTeams,
51
55
  AuthorPosts,
52
- AuthorFans,
56
+ // AuthorFans,
53
57
  },
54
58
  };
55
59
  </script>
@@ -190,7 +190,7 @@ export default {
190
190
  },
191
191
  },
192
192
  created() {
193
- this.baseAPI = `/api/comment/${this.category}/article/${this.id}`;
193
+ this.baseAPI = `/api/next2/comment/${this.category}/article/${this.id}`;
194
194
  },
195
195
  mounted() {
196
196
  getOrderMode()