From 6b491d124669d7de404854cda39d956ceb04ccae Mon Sep 17 00:00:00 2001 From: Po <448443959@qq.com> Date: Fri, 15 Nov 2024 13:07:21 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E6=A8=A1=E5=BC=8F=EF=BC=8C=E8=8F=9C=E5=8D=95=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Po <448443959@qq.com> --- Yi.RuoYi.Vue3/src/layout/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Yi.RuoYi.Vue3/src/layout/index.vue b/Yi.RuoYi.Vue3/src/layout/index.vue index 3ddb1657..07026810 100644 --- a/Yi.RuoYi.Vue3/src/layout/index.vue +++ b/Yi.RuoYi.Vue3/src/layout/index.vue @@ -41,12 +41,12 @@ const { width, height } = useWindowSize(); const WIDTH = 992; // refer to Bootstrap's responsive design watchEffect(() => { - if (device.value === 'mobile' && sidebar.value.opened) { - useAppStore().closeSideBar({ withoutAnimation: false }) - } + //if (device.value === 'mobile' && sidebar.value.opened) { + // useAppStore().closeSideBar({ withoutAnimation: false }) + // } if (width.value - 1 < WIDTH) { useAppStore().toggleDevice('mobile') - useAppStore().closeSideBar({ withoutAnimation: true }) + // useAppStore().closeSideBar({ withoutAnimation: true }) } else { useAppStore().toggleDevice('desktop') } From 91bf5f93cd5e9b1c57d873d5cb77f3956089b8b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com> Date: Fri, 15 Nov 2024 21:38:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20bbs=E8=AF=84=E8=AE=BA=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Forum/CommentService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/CommentService.cs b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/CommentService.cs index b8926f13..f18cc446 100644 --- a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/CommentService.cs +++ b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/CommentService.cs @@ -136,9 +136,9 @@ namespace Yi.Framework.Bbs.Application.Services.Forum [Authorize] public override async Task CreateAsync(CommentCreateInputVo input) { - if (input.Content.Length<=6) + if (string.IsNullOrWhiteSpace(input.Content)|| input.Content=="


") { - throw new UserFriendlyException("评论长度至少大于6"); + throw new UserFriendlyException("评论不能为空"); } var discuess = await _discussRepository.GetFirstAsync(x => x.Id == input.DiscussId);