From 5746eb191f78d9fb50bb8e730fde0eae75cae72f Mon Sep 17 00:00:00 2001 From: jialin Date: Sun, 30 Jun 2024 14:20:52 +0800 Subject: [PATCH] fix: remove drop console config --- config/config.ts | 4 ---- src/pages/dashboard/components/usage.tsx | 2 -- 2 files changed, 6 deletions(-) diff --git a/config/config.ts b/config/config.ts index b781887c..c6e3a197 100644 --- a/config/config.ts +++ b/config/config.ts @@ -44,10 +44,6 @@ export default defineConfig({ minRatio: 0.8 } ]); - }, - jsMinifierOptions: { - drop_console: true, - drop_debugger: true } } : {}), diff --git a/src/pages/dashboard/components/usage.tsx b/src/pages/dashboard/components/usage.tsx index 5607dabd..25fdffa0 100644 --- a/src/pages/dashboard/components/usage.tsx +++ b/src/pages/dashboard/components/usage.tsx @@ -79,14 +79,12 @@ const projectDataList = projectsData .sort((a, b) => b.value - a.value); const dataList = APIRequestData.map((val, i) => { - console.log('val', val); return { time: times[i], value: val }; }); const tokenUsage = TokensData.map((val, i) => { - console.log('val', val); return { time: times[i], value: val