📅  最后修改于: 2022-03-11 15:02:53.627000             🧑  作者: Mango
try below code in Plugins/index.js
module.exports = (on, config) => {
on('before:browser:launch', (browser, launchOptions) => {
if (browser.name === 'chrome' && browser.isHeadless) {
launchOptions.args.push('--disable-gpu');
return launchOptions
}
});
}