rm: 移除操作完毕后模拟移开鼠标的步骤

This commit is contained in:
foxhui
2026-01-19 03:44:06 +08:00
Unverified
parent 85be113b40
commit 33345db391
22 changed files with 35 additions and 117 deletions
+1 -5
View File
@@ -12,7 +12,6 @@ import {
waitApiResponse,
normalizePageError,
normalizeHttpError,
moveMouseAway,
waitForInput,
gotoWithCheck
} from '../utils/index.js';
@@ -158,10 +157,7 @@ async function generate(context, prompt, imgPaths, modelId, meta = {}) {
logger.error('适配器', '生成任务失败', { ...meta, error: err.message });
return { error: `生成任务失败: ${err.message}` };
} finally {
// 任务结束,将鼠标移至安全区域
await moveMouseAway(page);
}
} finally { }
}
/**