electron-vue + serialPort 使用
electron-vue搭建
# 安装vue-cli
npm install -g vue-cli
npm intsall -g electron
vue init simulatedgreg/electron-vue my-project
# 安装依赖和运行项目
cd my-project
yarn # or npm install
yarn run dev # or npm run dev
引入SerialPort(串口调用)
npm install serialport -S
安装node-g
原创
2021-05-15 13:20:39 ·
993 阅读 ·
1 评论