diff --git a/src/slots/Navbar/index.tsx b/src/slots/Navbar/index.tsx index 7d2f6fc..43a35d5 100644 --- a/src/slots/Navbar/index.tsx +++ b/src/slots/Navbar/index.tsx @@ -35,7 +35,7 @@ const Navbar = memo(() => { className={styles.tabs} items={nav.map((item) => ({ key: String(item.activePath! || item.link), - label: /^(\w+:)\/\/|^(mailto|tel):/.test(item.link) ? ( + label: /^(\w+:)\/\/|^(mailto|tel):/.test(item.link || '') ? ( {item.title}