修复编译错误,修复外链错误

This commit is contained in:
tangly1024
2022-12-08 12:18:04 +08:00
parent e76aa37d9f
commit b59f86d852
2 changed files with 12 additions and 9 deletions

View File

@@ -78,7 +78,7 @@ export default async function getPageProperties(id, block, schema, authToken, ta
// 开启伪静态路径
if (BLOG.PSEUDO_STATIC) {
if (!properties.slug.endsWith('.html')) {
if (!properties?.slug?.endsWith('.html') && !properties?.slug?.startsWith('http')) {
properties.slug += '.html'
}
}