fix:提交代码

This commit is contained in:
ljy
2026-09-07 00:07:40 +08:00
parent b822d21eae
commit 11bbf6cb0c
50 changed files with 1832 additions and 510 deletions
+7 -4
View File
@@ -1,15 +1,18 @@
import { Link } from 'react-router-dom'
import { Link, useLocation } from 'react-router-dom'
import { footer, images } from '../content/site'
import './Footer.css'
export function Footer() {
const location = useLocation()
const contactPath =
location.pathname === '/h5' || location.pathname.startsWith('/h5/') ? '/h5/contact' : '/contact'
return (
<footer className="site-footer">
<div className="container footer-inner">
<div className="footer-brand">
<img src={images.logo} alt="" className="footer-logo" />
<img src={images.logo} alt="杜康好客" className="footer-logo" />
<div>
<p className="serif footer-title">{footer.brandLine}</p>
<p className="footer-slogan">{footer.slogan}</p>
</div>
</div>
@@ -20,7 +23,7 @@ export function Footer() {
<p>{footer.compliance}</p>
<p>{footer.dataNote}</p>
<p>
<Link to="/contact">联系我们</Link>
<Link to={contactPath}>联系我们</Link>
</p>
</div>
</div>