Explorar el Código

fix: refresh log info on partial delete failure

RedwindA hace 1 mes
padre
commit
13122aa0fa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      web/src/pages/Setting/Performance/SettingsPerformance.jsx

+ 1 - 1
web/src/pages/Setting/Performance/SettingsPerformance.jsx

@@ -203,10 +203,10 @@ export default function SettingsPerformance(props) {
             size: formatBytes(freed_bytes),
           }),
         );
-        fetchLogInfo();
       } else {
         showError(res.data.message || t('清理失败'));
       }
+      fetchLogInfo();
     } catch (error) {
       showError(t('清理失败'));
     } finally {