If the electron version is below 10, there is no problem with rendering processes using the electron direct const {remote} = window.require(“electron”), but above 10, The contextIsolation option in BrowserWindow defaults to true, so the electron cannot be used in the JS environment, so we need to set the contextIsolation option to false