🐛 Fix page title error

This commit is contained in:
LittleSheep 2025-01-11 15:31:01 +08:00
parent cdf34ee9a1
commit bf43234eae
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ export function CapDrawer({ width, open, onClose }: { width: number; open: boole
href: '/terms',
},
{
title: 'SN Console',
title: 'Solar Console',
href: '/console',
},
]

View File

@ -55,7 +55,7 @@ export function ConsoleLayout({ children }: { children: JSX.Element }) {
export function getConsoleStaticProps(original: any) {
if (original.props.title) {
original.props.title = 'Console | ' + original.props.title
original.props.title = 'Solar Console | ' + original.props.title
}
original.props.showAppBar = false

View File

@ -39,7 +39,7 @@ export default function App({ Component, pageProps }: AppProps) {
}, [])
const title = pageProps.title
? pageProps.startsWith('Solar Network Console')
? pageProps.title.startsWith('Solar Console')
? pageProps.title
: `${pageProps.title} | Solsynth LLC`
: 'Solsynth LLC'