08-12-周三_16-44-56

This commit is contained in:
AaronXu
2026-08-12 16:44:57 +08:00
parent 56dd5b5adf
commit 460e9c7393
12 changed files with 1047 additions and 304 deletions
@@ -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;