修复打包后文件展示问题

This commit is contained in:
2025-08-13 14:42:22 +08:00
parent 2e18805c47
commit 997423d7e9
118 changed files with 54576 additions and 31 deletions

View File

@@ -74,8 +74,8 @@ export const Topbar: React.FC<TopbarProps> = ({
const status = await api.checkClaudeVersion();
setVersionStatus(status);
// If Claude is not installed and the error indicates it wasn't found
if (!status.is_installed && status.output.includes("No such file or directory")) {
// If Claude is not installed, prompt the selection/install dialog
if (!status.is_installed) {
// Emit an event that can be caught by the parent
window.dispatchEvent(new CustomEvent('claude-not-found'));
}