需求:vue-electron项目,想收到消息后,发出声音提示
解决方法:
在前端代码中加入一下代码,最好先判断是不是electron环境
const { shell } = window.require('electron')
shell.beep()
需求:vue-electron项目,想收到消息后,发出声音提示
解决方法:
在前端代码中加入一下代码,最好先判断是不是electron环境
const { shell } = window.require('electron')
shell.beep()
587
2145
5245
2553
2375
2097