Skip to content

Commit 4012606

Browse files
committed
🐛 消息跳转至沸点
1 parent ca2940a commit 4012606

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/business/notice/noticeItem.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
<p class="info__reply" v-if="item.type == 'comment' || item.type == 'pin-reply' || item.type == 'pin-comment'">{{ item | reply }}</p>
2222
<p class="info__entry ellipsis">
2323
<span class="info__type">{{ item | type }}:</span>
24-
<nuxt-link class="info__content" :to="'/detail/'+detailId" target="_blank">{{ item | content }}</nuxt-link>
24+
<nuxt-link v-if="detailId" class="info__content" :to="'/detail/'+detailId" target="_blank">{{ item | content }}</nuxt-link>
25+
<nuxt-link v-else class="info__content" :to="'/pin/'+pinId" target="_blank">{{ item | content }}</nuxt-link>
2526
</p>
2627
</div>
2728
<template v-if="item.count > 1">
@@ -46,6 +47,9 @@ export default {
4647
computed: {
4748
detailId() {
4849
return this.item.entry.originalUrl ? this.item.entry.originalUrl.split('/').pop() : ''
50+
},
51+
pinId() {
52+
return this.item.pin.objectId
4953
}
5054
},
5155
filters: {

0 commit comments

Comments
 (0)