08-12-周三_16-44-56
This commit is contained in:
@@ -62,9 +62,15 @@
|
||||
}).then(res => res.json()).then(data => {
|
||||
if (data.code == 0) {
|
||||
showToast('登录成功', 'success');
|
||||
setTimeout(() => {
|
||||
window.location.href = '/';
|
||||
}, 1000);
|
||||
if (username == 'admin') {
|
||||
setTimeout(() => {
|
||||
window.location.href = '/admin_categories.php';
|
||||
}, 1000);
|
||||
}else{
|
||||
setTimeout(() => {
|
||||
history.go(-1);
|
||||
}, 1000);
|
||||
}
|
||||
return
|
||||
}
|
||||
showToast(data.message, 'error'); return;
|
||||
|
||||
Reference in New Issue
Block a user