# electron_vue **Repository Path**: gaotao_1/electron_vue ## Basic Information - **Project Name**: electron_vue - **Description**: 行史馆 electron vue - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: dev_serial - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-12 - **Last Updated**: 2025-05-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # electron-vue This template should help get you started developing with Vue 3 in Vite. ## Recommended IDE Setup [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). ## Type Support for `.vue` Imports in TS TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types. ## Customize configuration See [Vite Configuration Reference](https://vite.dev/config/). ## Project Setup ```sh npm install ``` ### Compile and Hot-Reload for Development ```sh npm run dev ``` ### Type-Check, Compile and Minify for Production ```sh npm run build ``` ### Lint with [ESLint](https://eslint.org/) ```sh npm run lint ``` # 教程地址 https://blog.csdn.net/qq_37460847/article/details/126918641 brew install socat git -C "$(brew --repo)" remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git brew install socat socat -d -d pty,raw,echo=0 pty,raw,echo=0 成功后会输出你虚拟串口的两个路径,比如: /dev/ttys003 /dev/ttys004 cat /dev/ttys003 打开对端 在控制台能看到 输入证明懵。然后需要关闭这个cat 监听,否则会导致 electron 接收不到数据。 python send_serial.py serial.config 用来配置 开发环境与生产环境的串口监听