File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
components/business/notice Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 21
21
<p class =" info__reply" v-if =" item.type == 'comment' || item.type == 'pin-reply' || item.type == 'pin-comment'" >{{ item | reply }}</p >
22
22
<p class =" info__entry ellipsis" >
23
23
<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 >
25
26
</p >
26
27
</div >
27
28
<template v-if =" item .count > 1 " >
@@ -46,6 +47,9 @@ export default {
46
47
computed: {
47
48
detailId () {
48
49
return this .item .entry .originalUrl ? this .item .entry .originalUrl .split (' /' ).pop () : ' '
50
+ },
51
+ pinId () {
52
+ return this .item .pin .objectId
49
53
}
50
54
},
51
55
filters: {
You can’t perform that action at this time.
0 commit comments