更新串口插件
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user