fix多语言菜单跳转问题

This commit is contained in:
tangly1024.com
2024-04-15 14:25:55 +08:00
parent b6cd520531
commit dd9e30a177

View File

@@ -201,7 +201,7 @@ function getCustomMenu({ collectionData, NOTION_CONFIG }) {
e.to = e.slug
} else {
e.target = '_self'
if (e?.slug?.indexOf('/') !== 0) {
if (e?.slug?.indexOf('http') !== 0 && e?.slug?.indexOf('/') !== 0) {
e.to = '/' + e.slug
}
}