!334 修复无网络提示问题

Merge pull request !334 from 孟立/master
This commit is contained in:
openharmony_ci 2024-11-07 12:36:32 +00:00 committed by Gitee
commit e0e282c1cc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -421,8 +421,7 @@ struct DlpDialog {
HiLog.info(TAG, `unlink fail: ${JSON.stringify(err)}`);
}
await this.sendDlpFileCreateFault(102, (err.toString())); // 102: DLP_FILE_CREATE_ERROR
let errorInfo =
{'title': '', 'msg': $r('app.string.MESSAGE_SERVICE_INSIDE_ERROR') } as Record<string, string | Resource>;
let errorInfo = GetAlertMessage.getAlertMessage({ code: err } as BusinessError);
this.showErrorDialog(errorInfo.title, errorInfo.msg);
this.processing = false;
return;