add apis

This commit is contained in:
2025-02-22 23:41:22 +08:00
parent 2063a99c83
commit c7288b2cb4
34 changed files with 1170 additions and 328 deletions

View File

@@ -84,7 +84,13 @@ export const useAuthStore = defineStore(
message.success(t('login.loginSuccess'));
window.removeEventListener("message", messageHandler);
setTimeout(() => {
router.push('/main/photo/all');
const currentUrl = new URL(window.location.href);
const redirect = currentUrl.searchParams.get('redirect');
if (redirect) {
router.push(redirect);
} else {
router.push('/main/photo/all');
}
}, 1000);
} else {
message.error(t('login.loginError'));