mirror of https://github.com/halo-dev/halo
feat: change post and sheet access url.
parent
93d53938bf
commit
c524d43f9a
|
@ -56,13 +56,13 @@
|
|||
<a
|
||||
slot="description"
|
||||
target="_blank"
|
||||
:href="options.blog_url+'/archives/'+comment.post.url"
|
||||
:href="comment.post.fullPath"
|
||||
v-if="this.type=='posts'"
|
||||
>{{ comment.post.title }}</a>
|
||||
<a
|
||||
slot="description"
|
||||
target="_blank"
|
||||
:href="options.blog_url+'/s/'+comment.sheet.url"
|
||||
:href="comment.sheet.fullPath"
|
||||
v-else-if="this.type=='sheets'"
|
||||
>{{ comment.sheet.title }}</a>
|
||||
<span
|
||||
|
@ -136,7 +136,6 @@ export default {
|
|||
detailLoading: true,
|
||||
editable: false,
|
||||
commentStatus: commentApi.commentStatus,
|
||||
options: [],
|
||||
keys: ['blog_url']
|
||||
}
|
||||
},
|
||||
|
@ -163,9 +162,6 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['options'])
|
||||
},
|
||||
watch: {
|
||||
visible: function(newValue, oldValue) {
|
||||
this.$log.debug('old value', oldValue)
|
||||
|
|
|
@ -187,12 +187,12 @@
|
|||
发表在
|
||||
<a
|
||||
v-if="type==='posts'"
|
||||
:href="options.blog_url+'/archives/'+item.post.url"
|
||||
:href="item.post.fullPath"
|
||||
target="_blank"
|
||||
>《{{ item.post.title }}》</a>
|
||||
<a
|
||||
v-if="type === 'sheets'"
|
||||
:href="options.blog_url+'/s/'+item.sheet.url"
|
||||
:href="item.sheet.fullPath"
|
||||
target="_blank"
|
||||
>《{{ item.sheet.title }}》</a>
|
||||
</template>
|
||||
|
@ -282,14 +282,14 @@
|
|||
v-if="type==='posts'"
|
||||
slot="post"
|
||||
slot-scope="post"
|
||||
:href="options.blog_url+'/archives/'+post.url"
|
||||
:href="post.fullPath"
|
||||
target="_blank"
|
||||
>{{ post.title }}</a>
|
||||
<a
|
||||
v-if="type === 'sheets'"
|
||||
slot="sheet"
|
||||
slot-scope="sheet"
|
||||
:href="options.blog_url+'/s/'+sheet.url"
|
||||
:href="sheet.fullPath"
|
||||
target="_blank"
|
||||
>{{ sheet.title }}</a>
|
||||
<span
|
||||
|
@ -561,8 +561,7 @@ export default {
|
|||
comment.content = marked(comment.content)
|
||||
return comment
|
||||
})
|
||||
},
|
||||
...mapGetters(['options'])
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
loadComments() {
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
<a
|
||||
v-if="item.status=='PUBLISHED' || item.status == 'INTIMATE'"
|
||||
slot="title"
|
||||
:href="options.blog_url+'/archives/'+item.url"
|
||||
:href="item.fullPath"
|
||||
target="_blank"
|
||||
>{{ item.title }}</a>
|
||||
<a
|
||||
|
@ -396,8 +396,7 @@ export default {
|
|||
log.type = this.logType[log.type].text
|
||||
return log
|
||||
})
|
||||
},
|
||||
...mapGetters(['options'])
|
||||
}
|
||||
},
|
||||
destroyed: function() {
|
||||
if (this.logDrawerVisible) {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
target="_blank"
|
||||
>{{ item.author }}</a> 发表在 《<a
|
||||
v-if="item.post.status=='PUBLISHED' || item.post.status=='INTIMATE'"
|
||||
:href="options.blog_url+'/archives/'+item.post.url"
|
||||
:href="item.post.fullPath"
|
||||
target="_blank"
|
||||
>{{ item.post.title }}</a><a
|
||||
v-else-if="item.post.status=='DRAFT'"
|
||||
|
@ -40,7 +40,7 @@
|
|||
target="_blank"
|
||||
>{{ item.author }}</a> 发表在 《<a
|
||||
v-if="item.sheet.status=='PUBLISHED'"
|
||||
:href="options.blog_url+'/s/'+item.sheet.url"
|
||||
:href="item.sheet.fullPath"
|
||||
target="_blank"
|
||||
>{{ item.sheet.title }}</a><a
|
||||
v-else-if="item.sheet.status=='DRAFT'"
|
||||
|
@ -101,8 +101,7 @@ export default {
|
|||
comment.content = marked(comment.content)
|
||||
return comment
|
||||
})
|
||||
},
|
||||
...mapGetters(['options'])
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.loadComments()
|
||||
|
|
|
@ -237,7 +237,7 @@
|
|||
/>
|
||||
<a
|
||||
v-if="item.status=='PUBLISHED' || item.status == 'INTIMATE'"
|
||||
:href="options.blog_url+'/archives/'+item.url"
|
||||
:href="item.fullPath"
|
||||
target="_blank"
|
||||
style="text-decoration: none;"
|
||||
>
|
||||
|
@ -318,7 +318,7 @@
|
|||
/>
|
||||
<a
|
||||
v-if="record.status=='PUBLISHED' || record.status == 'INTIMATE'"
|
||||
:href="options.blog_url+'/archives/'+record.url"
|
||||
:href="record.fullPath"
|
||||
target="_blank"
|
||||
style="text-decoration: none;"
|
||||
>
|
||||
|
@ -620,8 +620,7 @@ export default {
|
|||
post.statusProperty = this.postStatus[post.status]
|
||||
return post
|
||||
})
|
||||
},
|
||||
...mapGetters(['options'])
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.loadPosts()
|
||||
|
|
|
@ -247,7 +247,7 @@
|
|||
>
|
||||
<a
|
||||
v-if="item.status=='PUBLISHED'"
|
||||
:href="options.blog_url+'/s/'+item.url"
|
||||
:href="item.fullPath"
|
||||
target="_blank"
|
||||
style="text-decoration: none;"
|
||||
>
|
||||
|
@ -298,7 +298,7 @@
|
|||
>
|
||||
<a
|
||||
v-if="record.status=='PUBLISHED'"
|
||||
:href="options.blog_url+'/s/'+record.url"
|
||||
:href="record.fullPath"
|
||||
target="_blank"
|
||||
style="text-decoration: none;"
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue