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(() => { + +