This commit is contained in:
杨志
2026-01-21 08:53:45 +08:00
parent f9c34127c7
commit a962e06a18
14 changed files with 574 additions and 222 deletions

View File

@@ -157,7 +157,12 @@
if (data.code === 1) {
showMessage('登录成功,正在跳转...', 'success');
setTimeout(() => {
window.location.href = '/crawler';
// 根据账号类型跳转到不同页面
if (data.data && data.data.is_admin) {
window.location.href = '/admin';
} else {
window.location.href = '/crawler';
}
}, 500);
} else {
showMessage(data.msg || '登录失败', 'error');