fix:串口引入修改

This commit is contained in:
surenjun 2025-10-28 15:26:01 +08:00
parent 08e430f02f
commit d1a1fc8b44
2 changed files with 1 additions and 5 deletions

View File

@ -323,6 +323,7 @@ export async function getSingleCenterTable(param) {
console.log('teststet0')
upDataZhongxinginitialization(param).then((result) => {
if (result === true) {
getChuankouFn()
resolve(true)
} else {
console.log('联网更新失败,请检查网络后重新更新')

View File

@ -32,7 +32,6 @@ import { GlobalConfig } from '../../config/index';
import prompt from '@ohos.promptAction'
import DB, { ColumnType } from '../database/DbSql';
import { MA_SYS_SET_COLUMN } from '../../model/Table';
import { getChuankouFn } from './indexService'
// @ts-nocheck
//读表
@ -456,10 +455,6 @@ export async function upDataZhongxinginitialization(param) {
resolve(false)
}
}
// 初始化串口
if(!globalThis.ChounkouInit){
getChuankouFn()
}
resolve(true)
}).catch((Error) => {
console.log("init table5", JSON.stringify(Error))