18 lines
479 B
TypeScript
18 lines
479 B
TypeScript
"use client";
|
|
|
|
import { useEffect } from "react";
|
|
|
|
/** 志愿者报名跳转到 /join 页面,带 volunteer=1 参数 */
|
|
export default function VolunteerPage() {
|
|
useEffect(() => {
|
|
if (typeof window !== "undefined") {
|
|
window.location.replace("/join?volunteer=1");
|
|
}
|
|
}, []);
|
|
return (
|
|
<div className="flex min-h-screen items-center justify-center bg-[#faf8f5] dark:bg-stone-950">
|
|
<span className="text-stone-400">跳转中…</span>
|
|
</div>
|
|
);
|
|
}
|