@jx3box/jx3box-common-ui 9.5.12 → 9.5.13
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,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"
|
|
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">
|
|
@@ -52,7 +51,7 @@
|
|
|
52
51
|
</template>
|
|
53
52
|
|
|
54
53
|
<script>
|
|
55
|
-
import { __server, __imgPath, __userLevel, __userLevelColor
|
|
54
|
+
import { __server, __imgPath, __userLevel, __userLevelColor } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
56
55
|
import { authorLink } from "@jx3box/jx3box-common/js/utils";
|
|
57
56
|
import User from "@jx3box/jx3box-common/js/user";
|
|
58
57
|
import { getUserInfo } from "../../service/author";
|
|
@@ -93,9 +92,6 @@ export default {
|
|
|
93
92
|
isSuperAuthor: function () {
|
|
94
93
|
return this.data?.sign;
|
|
95
94
|
},
|
|
96
|
-
defaultUrl: function () {
|
|
97
|
-
return `${__cdn}/design/avatar/xisai/0-1.png`
|
|
98
|
-
},
|
|
99
95
|
},
|
|
100
96
|
watch: {
|
|
101
97
|
uid: {
|