fix component props

This commit is contained in:
奇趣保罗 2024-09-05 02:20:21 +08:00
parent ef23dda691
commit 803b6b8e10
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import type { ReactNode, PropsWithChildren } from "react";
import styles from "./tab.module.less";
interface TabProps extends PropsWithChildren {
className: string;
className?: string;
}
interface HeaderProps {

View File

@ -6,11 +6,11 @@ const getTitle = () => {
const metaOgTitle = document.querySelector<HTMLMetaElement>(`meta[name="og:title"]`);
if (metaOgTitle) {
return metaOgTitle.getAttribute("content");;
return metaOgTitle.getAttribute("content");
}
if (metaTitle) {
return metaTitle.getAttribute("content");;
return metaTitle.getAttribute("content");
}
if (title.includes(" - ")) {