1. 修改了跳转逻辑

2. 增加了首页banner栏性能监控
This commit is contained in:
2026-01-21 09:42:38 +08:00
parent 861a4f4833
commit 5be838a74e
5 changed files with 140 additions and 2 deletions

View File

@@ -159,6 +159,9 @@
if (result.code === 0) {
errorMsg.classList.add('hidden');
// 保存登录时间戳5分钟超时
localStorage.setItem('loginTime', Date.now());
localStorage.setItem('username', username);
window.location.href = 'main.html';
} else {
errorMsg.textContent = result.message || '账号或密码错误';