fix:串口引入修改
This commit is contained in:
		
							parent
							
								
									08e430f02f
								
							
						
					
					
						commit
						d1a1fc8b44
					
				| @ -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('联网更新失败,请检查网络后重新更新') | ||||
|  | ||||
| @ -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)) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user