From 53b27f867da5bbf0e0e155127ec864e13dd1dd89 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Fri, 19 Apr 2024 15:24:48 +0800 Subject: [PATCH] feat: multi page: maintenance --- src/maintenance/index.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/maintenance/index.jsx b/src/maintenance/index.jsx index 3df462d..a215b46 100644 --- a/src/maintenance/index.jsx +++ b/src/maintenance/index.jsx @@ -2,7 +2,7 @@ import { clearAllCaches } from '@/utils/commons'; const MaintenancePage = () => { const handleClearCache = async () => { - await clearAllCaches(); + await clearAllCaches(alert(`清除成功🎉`)); }; const handleReload = () => { @@ -13,8 +13,6 @@ const MaintenancePage = () => { const _num = Date.now(); url.searchParams.set('_spam' + _num, _num); window.location.href = url.toString(); - // window.location.href = window.location.href + '?versionCheck=true'; - // window.location.reload(true); }; const handleVersionCheck = () => {};