清理调试信息,保持代码整洁
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1145,7 +1145,6 @@ function FileManagerContent({ initialHost, onClose }: FileManagerModernProps) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('Opening terminal at path:', path);
|
||||
|
||||
// 创建终端窗口
|
||||
const windowCount = Date.now() % 10;
|
||||
@@ -1188,20 +1187,11 @@ function FileManagerContent({ initialHost, onClose }: FileManagerModernProps) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('Running executable file:', file.path);
|
||||
|
||||
// 获取文件所在目录
|
||||
const fileDir = file.path.substring(0, file.path.lastIndexOf('/'));
|
||||
const fileName = file.name;
|
||||
const executeCmd = `./${fileName}`;
|
||||
|
||||
console.log('Execute command details:', {
|
||||
filePath: file.path,
|
||||
fileDir,
|
||||
fileName,
|
||||
executeCommand: executeCmd
|
||||
});
|
||||
|
||||
// 创建执行用的终端窗口
|
||||
const windowCount = Date.now() % 10;
|
||||
const offsetX = 250 + (windowCount * 40);
|
||||
|
||||
@@ -34,12 +34,6 @@ export function TerminalWindow({
|
||||
initialY = 150,
|
||||
executeCommand
|
||||
}: TerminalWindowProps) {
|
||||
console.log('TerminalWindow props:', {
|
||||
windowId,
|
||||
initialPath,
|
||||
executeCommand,
|
||||
hasExecuteCommand: !!executeCommand
|
||||
});
|
||||
const { closeWindow, minimizeWindow, maximizeWindow, focusWindow, windows } = useWindowManager();
|
||||
|
||||
// 获取当前窗口状态
|
||||
|
||||
Reference in New Issue
Block a user