feat: add resources

This commit is contained in:
2025-03-18 13:10:40 +08:00
parent cc76842582
commit 25def8c245
31 changed files with 1432 additions and 119 deletions

View File

@@ -4,8 +4,11 @@ import { toast } from 'react-toastify';
const LoginMessage = () => {
const handleClick = () => {
const currentUrl = window.location.href;
console.log(currentUrl);
const redirect = encodeURIComponent(currentUrl);
window.location.href = '/user/login?redirect=' + redirect;
console.log('redirect', redirect);
const newUrl = location.origin + '/user/login/?redirect=' + redirect;
window.open(newUrl, '_self');
};
return (