@jx3box/jx3box-common-ui 7.0.8 → 7.1.0

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": "7.0.8",
3
+ "version": "7.1.0",
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.8",
34
- "@jx3box/jx3box-common": "^7.7.4",
34
+ "@jx3box/jx3box-common": "^7.7.6",
35
35
  "@jx3box/jx3box-data": "^3.0.4",
36
36
  "@jx3box/jx3box-editor": "^1.7.5",
37
37
  "axios": "^0.26.1",
@@ -58,6 +58,12 @@ export default {
58
58
  },
59
59
  actions() {
60
60
  return [
61
+ {
62
+ label: "发送私信",
63
+ action: () => {
64
+ window.open("/dashboard/letter?receiver=" + this.uid);
65
+ },
66
+ },
61
67
  {
62
68
  label: "取消关注",
63
69
  action: () => {
@@ -5,7 +5,7 @@
5
5
  </span>
6
6
  <ul class="u-menu u-pop-content">
7
7
  <li v-for="item in finalPanel" :key="item.label">
8
- <a :href="item.link" target="_blank"
8
+ <a :href="item.link" :target="item.target || '_self'"
9
9
  ><i :class="item.icon || 'el-icon-present'"></i> {{ item.label }}</a
10
10
  >
11
11
  </li>
@@ -34,8 +34,8 @@ export default {
34
34
  return {
35
35
  panel,
36
36
 
37
- isTeamMember: false
38
- }
37
+ isTeamMember: false,
38
+ };
39
39
  },
40
40
  computed: {
41
41
  finalPanel: function () {
@@ -51,15 +51,15 @@ export default {
51
51
  .slice(0, 2);
52
52
  },
53
53
  isAdmin() {
54
- return User.isAdmin()
54
+ return User.isAdmin();
55
55
  },
56
56
  isEditor() {
57
- return User.isEditor()
57
+ return User.isEditor();
58
58
  },
59
59
  },
60
60
  mounted() {
61
61
  this.loadPanel();
62
- this.check()
62
+ this.check();
63
63
  },
64
64
  methods: {
65
65
  loadPanel: function () {
@@ -78,24 +78,24 @@ export default {
78
78
  console.log("loadPanel error", e);
79
79
  }
80
80
  },
81
- check: function() {
81
+ check: function () {
82
82
  try {
83
83
  const isTeamMember = JSON.parse(localStorage.getItem("BoxTeam3"));
84
84
 
85
85
  if (isTeamMember) {
86
- this.isTeamMember = isTeamMember === "true"
86
+ this.isTeamMember = isTeamMember === "true";
87
87
  } else {
88
- checkTeamMember().then(res => {
89
- this.isTeamMember = res.data.data
90
- localStorage.setItem("BoxTeam3", this.isTeamMember)
91
- })
88
+ checkTeamMember().then((res) => {
89
+ this.isTeamMember = res.data.data;
90
+ localStorage.setItem("BoxTeam3", this.isTeamMember);
91
+ });
92
92
  }
93
93
  } catch (e) {
94
94
  console.log("check error", e);
95
95
  }
96
- }
97
- }
98
- }
96
+ },
97
+ },
98
+ };
99
99
  </script>
100
100
 
101
101
  <style lang="less">