@jx3box/jx3box-vue3-ui 1.1.6 → 1.1.7

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": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,8 +1,7 @@
1
1
  <template>
2
2
  <div class="c-author-info">
3
3
  <div class="u-author">
4
- <Avatar class="u-avatar" :uid="uid" :url="data.user_avatar" size="s" :frame="data.user_avatar_frame" v-if="!anonymous" />
5
- <Avatar v-else class="u-avatar" :url="defaultUrl" size="s"></Avatar>
4
+ <Avatar class="u-avatar" :uid="uid" :url="data.user_avatar" size="s" :frame="data.user_avatar_frame" />
6
5
  <div class="u-info">
7
6
  <div class="u-name">
8
7
  <el-tooltip class="item" effect="dark" content="签约作者" placement="top" v-if="isSuperAuthor">
@@ -60,7 +59,7 @@ import { getUserInfo } from "../../service/author";
60
59
  import Avatar from "./Avatar.vue";
61
60
  import Honor from "./AuthorHonor.vue";
62
61
 
63
- const { __imgPath, __userLevelColor, __cdn } = JX3BOX;
62
+ const { __imgPath, __userLevelColor } = JX3BOX;
64
63
  export default {
65
64
  name: "AuthorInfo",
66
65
  props: ["uid", "anonymous"],
@@ -96,9 +95,6 @@ export default {
96
95
  isSuperAuthor: function () {
97
96
  return this.data?.sign;
98
97
  },
99
- defaultUrl: function () {
100
- return `${__cdn}/design/avatar/xisai/0-1.png`
101
- },
102
98
  },
103
99
  watch: {
104
100
  uid: {
@@ -228,7 +228,7 @@ export default {
228
228
 
229
229
  User.isLogin() && getUserPermission().then(res => {
230
230
  const permissions = res.data.data.permission?.map(item => item.action)
231
- this.hasPermission = permissions.includes(`manage_boxcoin_${this.postType}`) || User.isSuperAdmin();
231
+ this.hasPermission = permissions.includes(`manage_boxcoin_${this.postType}`)
232
232
  })
233
233
  },
234
234
  // 用户打赏