useRouter is a React Hook, meaning it cannot be used with classes. ... You don't need to use router.push for external URLs. window.location is better suited ...
確定! 回上一頁