Enhance logging and error handling in dashboard scripts

- Added detailed console logs in api.js to trace the execution flow during data loading and UI updates.
- Improved logging in main.js to monitor the initialization process and server mode data loading.
- Updated explorer.js to clarify the definition of defaultCliTool, indicating its location in another module.
This commit is contained in:
catlog22
2025-12-11 19:21:28 +08:00
parent db4ab85d3e
commit e350e0c7bb
3 changed files with 5 additions and 5 deletions

View File

@@ -604,7 +604,7 @@ export async function startServer(options = {}) {
const content = readFileSync(assetPath);
res.writeHead(200, {
'Content-Type': contentType,
'Cache-Control': 'public, max-age=31536000'
'Cache-Control': 'no-cache, must-revalidate'
});
res.end(content);
return;

File diff suppressed because one or more lines are too long

View File

@@ -13,7 +13,7 @@ let explorerExpandedDirs = new Set();
let updateTaskQueue = [];
let isTaskQueueVisible = false;
let isTaskRunning = false;
let defaultCliTool = 'gemini'; // Default CLI tool for updates
// Note: defaultCliTool is defined in components/cli-status.js
/**