feat:showToast方法修改

This commit is contained in:
surenjun 2025-04-07 16:18:11 +08:00
parent b85da5dc74
commit b186ffd3db

View File

@ -1,10 +1,9 @@
import socket from '@ohos.net.socket';
import hilog from '@ohos.hilog';
import { getTCP } from './GlobalTcp';
import prompt from '@ohos.prompt';
import FileUtil from './File';
import { dateFormat } from './tools';
import Prompt from '@system.prompt';
const TAG = 'socketTag[TcpDemo.TcpClient]'
export default class TcpClient {
@ -187,7 +186,7 @@ export default class TcpClient {
if (globalThis.tcpUdpError) {
console.log(TAG,'tcp信号丢失')
// getTCP()
prompt.showToast({
Prompt.showToast({
message: 'tcp信号丢失',
duration: 2000
});