// 验证Agent板块设置 const fs = require('fs'); const path = require('path'); console.log('🔍 验证Agent板块设置\n'); console.log('='.repeat(80)); // 1. 检查AgentPage组件 console.log('\n1. 检查 AgentPage 组件'); const agentPagePath = path.join(__dirname, 'src/pages/AgentPage/index.jsx'); const agentCssPath = path.join(__dirname, 'src/pages/AgentPage/index.css'); const hasAgentPage = fs.existsSync(agentPagePath); console.log(` ${hasAgentPage ? '✅' : '❌'} AgentPage组件文件存在`); const hasAgentCss = fs.existsSync(agentCssPath); console.log(` ${hasAgentCss ? '✅' : '❌'} AgentPage样式文件存在`); if (hasAgentPage) { const agentPageContent = fs.readFileSync(agentPagePath, 'utf-8'); const hasIframe = agentPageContent.includes('