agent_9art/frontend/admin/debug-dash.cjs
jiao d327826c78 chore: 完成项目整体打包与配置更新
1. 更新所有服务Dockerfile,切换到eclipse-temurin:17-jre-alpine镜像并调整服务端口
2. 配置前端项目基础路径与nginx代理
3. 新增数据库初始化编码设置与测试依赖
4. 添加部分服务的Servlet编码配置与JWT/LLM密钥配置
5. 完善话术实体类校验注解与Mapper接口
6. 新增密码生成工具类与部分测试文件配置
2026-05-21 11:40:22 +08:00

20 lines
766 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const puppeteer = require('puppeteer-core');
(async () => {
const browser = await puppeteer.launch({
executablePath: 'C:/Program Files/Google/Chrome/Application/chrome.exe',
headless: true,
args: ['--no-sandbox', '--disable-setuid-sandbox']
});
const page = await browser.newPage();
// 先登录
await page.goto('http://localhost:5174/login');
await new Promise(r => setTimeout(r, 1000));
await page.type('input[type="text"]', 'admin');
await page.type('input[type="password"]', 'admin123');
await page.click('button[type="submit"]');
await new Promise(r => setTimeout(r, 3000));
// 已经在首页(Dashboard)
await page.screenshot({ path: 'D:/www/agent_9art/admin-dash.png', fullPage: true });
await browser.close();
})();