From 9593b68d336ce99d07db720e86af818e0689c35e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com> Date: Sat, 11 Mar 2023 15:02:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E9=9B=AA=E8=8A=B1id?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.BBS.Vue3/src/apis/discussApi.js | 7 +++ Yi.BBS.Vue3/src/components/PlateCard.vue | 7 ++- Yi.BBS.Vue3/src/router/index.js | 2 +- Yi.BBS.Vue3/src/utils/request.js | 17 ++++-- Yi.BBS.Vue3/src/views/Discuss.vue | 21 ++++++-- Yi.BBS.Vue3/src/views/Index.vue | 7 ++- .../Extensions/AutoFacModuleExtensions.cs | 4 +- .../Json/LongToStringConverter .cs | 39 ++++++++++++++ .../src/project/BBS/Yi.BBS.Web/Program.cs | 10 +++- .../project/BBS/Yi.BBS.Web/Yi.BBS.Web.csproj | 6 +++ .../project/BBS/Yi.BBS.Web/YiBBSWebModule.cs | 4 +- .../project/BBS/Yi.BBS.Web/appsettings.json | 2 +- .../src/project/BBS/Yi.BBS.Web/nlog.config | 51 ++++++++++++++++++ .../project/BBS/Yi.BBS.Web/yi-sqlsugar-dev.db | Bin 237568 -> 237568 bytes .../src/project/bbs/Yi.BBS.Web/Program.cs | 10 +++- .../project/bbs/Yi.BBS.Web/Yi.BBS.Web.csproj | 6 +++ .../project/bbs/Yi.BBS.Web/YiBBSWebModule.cs | 4 +- .../project/bbs/Yi.BBS.Web/appsettings.json | 2 +- .../project/bbs/Yi.BBS.Web/yi-sqlsugar-dev.db | Bin 237568 -> 237568 bytes 19 files changed, 173 insertions(+), 26 deletions(-) create mode 100644 Yi.Framework.Net6/src/framework/Yi.Framework.Data/Json/LongToStringConverter .cs create mode 100644 Yi.Framework.Net6/src/project/BBS/Yi.BBS.Web/nlog.config diff --git a/Yi.BBS.Vue3/src/apis/discussApi.js b/Yi.BBS.Vue3/src/apis/discussApi.js index 9c748044..2972574b 100644 --- a/Yi.BBS.Vue3/src/apis/discussApi.js +++ b/Yi.BBS.Vue3/src/apis/discussApi.js @@ -5,4 +5,11 @@ export function getList(data){ method: 'get', params:data }) +}; + +export function getListByPlateId(plateId){ + return myaxios({ + url: `/discuss/plate-id/${plateId}`, + method: 'get' + }) }; \ No newline at end of file diff --git a/Yi.BBS.Vue3/src/components/PlateCard.vue b/Yi.BBS.Vue3/src/components/PlateCard.vue index d698275d..a984e0a7 100644 --- a/Yi.BBS.Vue3/src/components/PlateCard.vue +++ b/Yi.BBS.Vue3/src/components/PlateCard.vue @@ -11,7 +11,7 @@ {{props.name}}