From a1be2bebf7a23acfa176844a85742b72db2c69c1 Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Fri, 2 Jan 2026 00:51:05 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E4=BC=98=E5=8C=96=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Yi.Framework.AiHub.Application/Services/ChannelService.cs | 3 ++- Yi.Ai.Vue3/src/pages/console/channel/index.vue | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/ChannelService.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/ChannelService.cs index 8accdf74..66f1bc0e 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/ChannelService.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/ChannelService.cs @@ -40,7 +40,7 @@ public class ChannelService : ApplicationService, IChannelService var entities = await _appRepository._DbQueryable .WhereIF(!string.IsNullOrWhiteSpace(input.SearchKey), x => x.Name.Contains(input.SearchKey)) - .OrderBy(x => x.OrderNum) + .OrderByDescending(x => x.OrderNum) .OrderByDescending(x => x.CreationTime) .ToPageListAsync(input.SkipCount, input.MaxResultCount, total); @@ -230,6 +230,7 @@ public class ChannelService : ApplicationService, IChannelService /// /// 删除AI模型(软删除) /// + [HttpDelete("channel/model/{id}")] public async Task DeleteModelAsync(Guid id) { await _modelRepository.DeleteByIdAsync(id); diff --git a/Yi.Ai.Vue3/src/pages/console/channel/index.vue b/Yi.Ai.Vue3/src/pages/console/channel/index.vue index b177512a..318a79f2 100644 --- a/Yi.Ai.Vue3/src/pages/console/channel/index.vue +++ b/Yi.Ai.Vue3/src/pages/console/channel/index.vue @@ -432,6 +432,8 @@ onMounted(() => { + +