This commit is contained in:
你的名字
2025-10-18 09:58:42 +08:00
parent c724f259c3
commit 17169847f3

View File

@ -130,7 +130,7 @@ define(["jquery", "easy-admin"], function ($, ea) {
});
}, 5000); // 每10秒执行一次
// ✅ 每5分钟清理一次缓存并刷新页面
let cacheCleanTimer = setInterval(function () {
setInterval(function () {
try {
console.log('🧹 清理浏览器缓存并刷新页面...');
// 刷新当前页
@ -138,7 +138,8 @@ define(["jquery", "easy-admin"], function ($, ea) {
} catch (e) {
console.warn('清理缓存失败', e);
}
}, 5 * 60 * 1000); // 5分钟 = 300000ms
}, 1 * 60 * 1000);
// 5分钟 = 300000ms
ea.listen();
},