From 8c940126b5ad83d883b4c9f26c9e56f92d54b82b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com> Date: Tue, 29 Oct 2024 22:08:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9Eyarn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AuditingStore.cs | 13 +++++++------ Yi.RuoYi.Vue3/package.json | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Yi.Abp.Net8/module/audit-logging/Yi.Framework.AuditLogging.Domain/AuditingStore.cs b/Yi.Abp.Net8/module/audit-logging/Yi.Framework.AuditLogging.Domain/AuditingStore.cs index c850e609..d405eb1a 100644 --- a/Yi.Abp.Net8/module/audit-logging/Yi.Framework.AuditLogging.Domain/AuditingStore.cs +++ b/Yi.Abp.Net8/module/audit-logging/Yi.Framework.AuditLogging.Domain/AuditingStore.cs @@ -16,6 +16,7 @@ public class AuditingStore : IAuditingStore, ITransientDependency protected IUnitOfWorkManager UnitOfWorkManager { get; } protected AbpAuditingOptions Options { get; } protected IAuditLogInfoToAuditLogConverter Converter { get; } + public AuditingStore( IAuditLogRepository auditLogRepository, IUnitOfWorkManager unitOfWorkManager, @@ -52,10 +53,10 @@ public class AuditingStore : IAuditingStore, ITransientDependency protected virtual async Task SaveLogAsync(AuditLogInfo auditInfo) { Logger.LogDebug("Yi-请求追踪:" + JsonHelper.ObjToStr(auditInfo, "yyyy-MM-dd HH:mm:ss")); - using (var uow = UnitOfWorkManager.Begin(true)) - { - await AuditLogRepository.InsertAsync(await Converter.ConvertAsync(auditInfo)); - await uow.CompleteAsync(); - } + // using (var uow = UnitOfWorkManager.Begin(true,isTransactional:false)) + // { + await AuditLogRepository.InsertAsync(await Converter.ConvertAsync(auditInfo)); + // await uow.CompleteAsync(); + // } } -} +} \ No newline at end of file diff --git a/Yi.RuoYi.Vue3/package.json b/Yi.RuoYi.Vue3/package.json index aa929d8a..2a739592 100644 --- a/Yi.RuoYi.Vue3/package.json +++ b/Yi.RuoYi.Vue3/package.json @@ -30,10 +30,11 @@ "pinia": "2.1.7", "qs": "^6.12.0", "typeface-roboto": "^1.1.13", + "vform3-builds": "^3.0.10", "vue": "3.4.21", "vue-cropper": "1.0.3", "vue-router": "4.3.0", - "vform3-builds": "^3.0.10" + "yarn": "^1.22.22" }, "devDependencies": { "@vitejs/plugin-vue": "^5.0.4", @@ -48,5 +49,4 @@ "vite-plugin-vue-setup-extend": "^0.4.0" }, "type": "module" - }