1
This commit is contained in:
@ -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();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user