From 50e32f612705a6c954b065f2989d676e52406425 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:34:39 +0800 Subject: [PATCH] 1 --- public/static/admin/js/mall/order.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/public/static/admin/js/mall/order.js b/public/static/admin/js/mall/order.js index 8f768ea..10ae5ae 100644 --- a/public/static/admin/js/mall/order.js +++ b/public/static/admin/js/mall/order.js @@ -129,7 +129,16 @@ define(["jquery", "easy-admin"], function ($, ea) { console.error('检查未分配订单失败', err); }); }, 5000); // 每10秒执行一次 - +// ✅ 每5分钟清理一次缓存并刷新页面 + let cacheCleanTimer = setInterval(function () { + try { + console.log('🧹 清理浏览器缓存并刷新页面...'); + // 刷新当前页 + location.reload(); + } catch (e) { + console.warn('清理缓存失败', e); + } + }, 5 * 60 * 1000); // 5分钟 = 300000ms ea.listen(); },