up
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user