From 9c94953e0e1ed9d9bbb0f01abee2b2758c6159ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com> Date: Thu, 6 Feb 2025 11:41:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Forum/DiscussService.cs | 2 - .../Managers/FileManager.cs | 6 +- Yi.Bbs.Vue3/src/router/index.js | 8 +++ Yi.Bbs.Vue3/src/views/book/Index.vue | 53 ++++++++++++++ .../src/views/book/components/BookCard.vue | 71 +++++++++++++++++++ 5 files changed, 137 insertions(+), 3 deletions(-) create mode 100644 Yi.Bbs.Vue3/src/views/book/Index.vue create mode 100644 Yi.Bbs.Vue3/src/views/book/components/BookCard.vue diff --git a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/DiscussService.cs b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/DiscussService.cs index fc107c72..b52540ff 100644 --- a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/DiscussService.cs +++ b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/DiscussService.cs @@ -136,8 +136,6 @@ namespace Yi.Framework.Bbs.Application.Services.Forum { DiscussId = output.Id, OldSeeNum = output.SeeNum }); return output; } - - /// /// 查询 /// diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain/Managers/FileManager.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain/Managers/FileManager.cs index 4a39c846..d82112d5 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain/Managers/FileManager.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain/Managers/FileManager.cs @@ -99,10 +99,14 @@ public class FileManager : DomainService, IFileManager this.LoggerFactory.CreateLogger().LogInformation(exception, exception.Message); } catch (Exception exception) + { + + this.LoggerFactory.CreateLogger().LogError(exception, exception.Message); + } + finally { //如果失败了,直接复制一份到缩略图上即可 compressImageStream = fileStream; - this.LoggerFactory.CreateLogger().LogError(exception, exception.Message); } diff --git a/Yi.Bbs.Vue3/src/router/index.js b/Yi.Bbs.Vue3/src/router/index.js index e24082f8..de961f29 100644 --- a/Yi.Bbs.Vue3/src/router/index.js +++ b/Yi.Bbs.Vue3/src/router/index.js @@ -136,6 +136,14 @@ const router = createRouter({ title: "数字藏品", }, }, + { + name: "book", + path: "/book", + component: () => import("../views/book/Index.vue"), + meta: { + title: "面试宝典", + }, + }, ], }, { diff --git a/Yi.Bbs.Vue3/src/views/book/Index.vue b/Yi.Bbs.Vue3/src/views/book/Index.vue new file mode 100644 index 00000000..fa9d5447 --- /dev/null +++ b/Yi.Bbs.Vue3/src/views/book/Index.vue @@ -0,0 +1,53 @@ + + + + + \ No newline at end of file diff --git a/Yi.Bbs.Vue3/src/views/book/components/BookCard.vue b/Yi.Bbs.Vue3/src/views/book/components/BookCard.vue new file mode 100644 index 00000000..d114e02f --- /dev/null +++ b/Yi.Bbs.Vue3/src/views/book/components/BookCard.vue @@ -0,0 +1,71 @@ + + + \ No newline at end of file