fix(GOV-009): 消除前端运行时模板警告

This commit is contained in:
2026-08-13 18:03:35 +08:00
parent c771a98d4d
commit dcdf634457
3 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -4,7 +4,9 @@ test('应用外壳在桌面和移动视口均可正常呈现', async ({ page })
const runtimeErrors: string[] = [];
page.on('console', (message) => {
if (message.type() === 'error') runtimeErrors.push(message.text());
if (message.type() === 'error' || message.type() === 'warning') {
runtimeErrors.push(message.text());
}
});
page.on('pageerror', (error) => runtimeErrors.push(error.message));