更新串口插件

This commit is contained in:
2026-06-03 15:49:48 +08:00
parent 923b4a3292
commit f5e47f37b3
16 changed files with 1106 additions and 1871 deletions
+3
View File
@@ -2,6 +2,7 @@
// #ifdef APP
import { SerialPortHelper } from "@/uni_modules/android-serialport";
import * as db from '@/db/sqlite.js'
import serialService from '@/service/serialService.js'
// #endif
export default {
globalData: {
@@ -14,6 +15,8 @@
this.globalData.RS485 = new SerialPortHelper();
this.globalData.RS232 = new SerialPortHelper();
db.openDb()
// 启动全局串口服务(脱离页面生命周期)
serialService.init()
// #endif
},
onShow: function() {