後來爬了一些文,決定用一個preload.js 把ipcRenderer 預存到全域範圍裡。 這樣在vue component 裡,用window.ipcRenderer 就可以使用electron ...
確定! 回上一頁