一、将nodeIntegration设置为true
因为electron@5.x及以后的版本nodeIntegration的默认值发生了改变
二、将nodeIntegration设置为true,contextIsolation设置为false。
因为electron 12.0及以后版本的contextIsolation默认值发生了更改
一、将nodeIntegration设置为true
因为electron@5.x及以后的版本nodeIntegration的默认值发生了改变
二、将nodeIntegration设置为true,contextIsolation设置为false。
因为electron 12.0及以后版本的contextIsolation默认值发生了更改