mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-27 23:34:48 +08:00
feat: add douban url, optimize source aggregate
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user