Skip to content

Commit bf4aafc

Browse files
committed
fix: post with link
1 parent c71a93f commit bf4aafc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/views/theme/includes/CustomSetting.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export default class ThemeCustomSetting extends Vue {
232232
const list = this.site.posts.map((post: any) => {
233233
return {
234234
...post,
235-
link: urlJoin(this.site.setting.domain, this.site.themeConfig.postPath, post.fileName),
235+
link: urlJoin(this.site.setting.domain, this.site.themeConfig.postPath, post.fileName, '/'),
236236
}
237237
}).filter((post: any) => post.data.published)
238238
@@ -305,6 +305,7 @@ export default class ThemeCustomSetting extends Vue {
305305
}
306306
307307
handlePostSelected(postUrl: string, name: string, arrayIndex?: number, fieldName?: string) {
308+
console.log('postUrl', postUrl)
308309
if (arrayIndex === undefined) {
309310
this.form[name] = postUrl
310311
} else if (arrayIndex !== undefined && fieldName !== undefined) {

0 commit comments

Comments
 (0)