This commit is contained in:
tangly1024
2023-06-06 23:24:18 +08:00
parent 0623e5b38e
commit d1a4e8e9b9

View File

@@ -172,5 +172,9 @@ function generateCustomizeUrl(postProperties) {
fullSlug += '/'
}
})
if (fullSlug.startsWith('/')) {
fullSlug = fullSlug.substring(1) // 去掉头部的"/"
}
return `${fullSlug}/${(postProperties.slug ?? postProperties.id)}`
}