From 17169847f31cb18fe9067ef8d0324a3bc105dde9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=A0=E7=9A=84=E5=90=8D=E5=AD=97?= Date: Sat, 18 Oct 2025 09:58:42 +0800 Subject: [PATCH] 1 --- public/static/admin/js/mall/order.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/static/admin/js/mall/order.js b/public/static/admin/js/mall/order.js index 10ae5ae..cd87507 100644 --- a/public/static/admin/js/mall/order.js +++ b/public/static/admin/js/mall/order.js @@ -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(); },