From e949a154848e3a5c82b335a75ebdae89d71bcff4 Mon Sep 17 00:00:00 2001 From: sysnix <535420543@qq.com> Date: Thu, 23 Nov 2023 04:39:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=99=BB=E9=99=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/admin/login.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/admin/login.html b/template/admin/login.html index 5d79835..2b4fc06 100644 --- a/template/admin/login.html +++ b/template/admin/login.html @@ -99,8 +99,8 @@ v => !!v || '不能为空', ], - username: "admin", - password: "littlehui.com!23", + username: "", + password: "", captcha: '#{.captcha}' }, methods: { -- 2.40.1 From 833850b5e57892fc697157232ee24a694c3f2033 Mon Sep 17 00:00:00 2001 From: sysnix <535420543@qq.com> Date: Thu, 23 Nov 2023 04:46:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E9=87=8F=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/service/article_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/article_service.go b/internal/service/article_service.go index cf72362..d1cc219 100644 --- a/internal/service/article_service.go +++ b/internal/service/article_service.go @@ -102,7 +102,7 @@ func (*articleService) PageArticle(page int, itemsPerPage int) model.Page[any] { // content[i].View = view var vo = struct { model.BlogArticle - View int64 + View int64 `json:"view"` }{v, view} ret = append(ret, vo) -- 2.40.1