commit e23a4bc500b81b2c8842f5246af3890aa7281a55 Author: qubiaobiao <3294694717@qq.com> Date: Thu Feb 22 11:22:19 2024 +0800 主要版本 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8968bd5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +node_modules +.DS_Store +dist +dist-ssr +*.local + +.vscode +.idea + +public/Cesium \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e025aed --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Vite Electron Typescript Template + +`vite 2` `vue 3` `electron 12` + +## How to use +clone the repo via git and install dependencies: +```shell +git clone --depth 1 --single-branch https://github.com/hocili/vite-electron-typescript-template.git your-project-name +cd your-project-name +yarn +``` + +## Starting Development +Start the app in the `dev` environment: +```shell +yarn dev +``` + +```shell +yarn electron:dev +``` +## Packaging for Production +To package apps for the local platform: +```shell +yarn electron:build +``` + +## TODO +1. 使用web serial api实现串口数据接收 diff --git a/config.json b/config.json new file mode 100644 index 0000000..074264a --- /dev/null +++ b/config.json @@ -0,0 +1,7 @@ +{ + "serialport": { + "path": "COM3", + "baudRate": 115200 + }, + "extend_tdt_window": false +} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..a82fdaa --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + +
+ + + +