guofei 2024-10-25 10:44:04 +08:00
parent c650c1fc8e
commit 3a7541ca76
2 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,10 @@ export default function Examples(props: { dict: Record<string, string>; lang: st
const [examples, setExamples] = useState([]);
useEffect(() => {
if (window.location.hash == "#/price") {
window.location.replace(`${window.location.origin}/price`);
return;
}
const fetchData = async () => {
const res = await fetch(`https://www-soyootech.oss-cn-hangzhou.aliyuncs.com/example.json`);
const dataSource = await res.json();

View File

@ -120,7 +120,7 @@ export default function Header(props: { dict: Record<string, string>; lang: stri
/>
</div>
{
<div className={`absolute ${!show && "hidden"} left-0 right-0 top-0 bottom-0 left-0 top-0 z-[10000]`} onClick={() => setShow(false)}>
<div className={`absolute ${!show && "hidden"} right-0 bottom-0 left-0 top-0 z-[10000]`} onClick={() => setShow(false)}>
<Link href={lang[0] === "zh" ? "/en" : "/"}>
<div
className={`absolute right-[40px] top-[68px] w-[129px] h-[28px] leading-[28px]
@ -133,7 +133,6 @@ export default function Header(props: { dict: Record<string, string>; lang: stri
}
</div>
</div>
<div className={`${!show && "hidden"} fixed bg-[#000000] opacity-[0] left-0 top-0 bottom-0 right-0 z-[899]`} onClick={() => setShow(false)}></div>
</>
);
}