If you want to use the ipc
message of Electron from within a Vue.js project, here the way learned from this threads:
<script>
const { ipcRenderer } = window.require('electron')
export default {
methods:{
send(){
ipcRenderer.invoke('perform-action', {a:true})
}
}
}
</script>