feat: add douban url, optimize source aggregate

This commit is contained in:
shinya
2025-07-01 22:41:30 +08:00
parent 31069691ef
commit b732e9a3d4
12 changed files with 177 additions and 9 deletions

View File

@@ -8,6 +8,7 @@ interface DemoCardProps {
title: string;
poster: string;
rate?: string;
type?: string;
}
function SearchCircle({
@@ -54,12 +55,12 @@ function SearchCircle({
);
}
const DemoCard = ({ id, title, poster, rate }: DemoCardProps) => {
const DemoCard = ({ id, title, poster, rate, type }: DemoCardProps) => {
const [hover, setHover] = useState(false);
const router = useRouter();
const handleClick = () => {
router.push(`/aggregate?q=${encodeURIComponent(title)}`);
router.push(`/aggregate?q=${encodeURIComponent(title)}&type=${type}`);
};
return (