From d1a1fc8b4496622b9b28d63259a34839194b9e2b Mon Sep 17 00:00:00 2001 From: surenjun Date: Tue, 28 Oct 2025 15:26:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=B8=B2=E5=8F=A3=E5=BC=95=E5=85=A5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/common/service/indexService.ts | 1 + entry/src/main/ets/common/service/initable.ts | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/entry/src/main/ets/common/service/indexService.ts b/entry/src/main/ets/common/service/indexService.ts index 4abacc93..f885899b 100644 --- a/entry/src/main/ets/common/service/indexService.ts +++ b/entry/src/main/ets/common/service/indexService.ts @@ -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('联网更新失败,请检查网络后重新更新') diff --git a/entry/src/main/ets/common/service/initable.ts b/entry/src/main/ets/common/service/initable.ts index 71f79109..def04b15 100644 --- a/entry/src/main/ets/common/service/initable.ts +++ b/entry/src/main/ets/common/service/initable.ts @@ -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))