@jx3box/jx3box-common-ui 7.9.4 → 7.9.6

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.9.4",
3
+ "version": "7.9.6",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -184,7 +184,7 @@ export default {
184
184
  methods: {
185
185
  isFocus: function (type) {
186
186
  let active = '';
187
- const pathname = location.pathname?.split('/')?.filter(Boolean)?.[0] || 'index';
187
+ const pathname = location.pathname?.split('/')?.filter(Boolean)?.[0] || '';
188
188
  for (const key in activeNav) {
189
189
  if (activeNav[key].includes(pathname)) {
190
190
  active = key;
@@ -28,6 +28,10 @@ export default {
28
28
  type: Number,
29
29
  default: 46917,
30
30
  },
31
+ postBanner: {
32
+ type: String,
33
+ default: "",
34
+ },
31
35
  },
32
36
  data() {
33
37
  return {
@@ -42,7 +46,8 @@ export default {
42
46
  return this.topicInfo ? dayjs(this.topicInfo.created_at).format('YYYY年') : ""
43
47
  },
44
48
  topicImage() {
45
- return this.topicInfo ? getThumbnail(this.topicInfo.img, [260*2, 78*2]) : ''
49
+ const img = this.postBanner || this.topicInfo?.img;
50
+ return getThumbnail(img, [260*2, 78*2])
46
51
  },
47
52
  client() {
48
53
  return location.href.includes("origin") ? "origin" : "std";