From ad02a46afba3a36fa360f71a957c14ebef0e0c9d Mon Sep 17 00:00:00 2001 From: QSummerY <1272750872@qq.com> Date: Mon, 4 Sep 2023 16:37:09 +0800 Subject: [PATCH 1/2] optimize frontend list operation response --- frontend/pages/ticket/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/pages/ticket/index.vue b/frontend/pages/ticket/index.vue index 324b1fc3..18b83f1e 100644 --- a/frontend/pages/ticket/index.vue +++ b/frontend/pages/ticket/index.vue @@ -45,7 +45,7 @@ {{status}} - + @@ -65,7 +65,7 @@ - + @@ -342,6 +342,7 @@ export default { this.$message.info('Ticket ' + status) this.hideRejectModal() this.hideCloseModal() + this.loadTickets({page: 1, pagesize: 10}) }).catch((error) => { const rawMsg = error.response.data.description const msg = rawMsg.length > 300 ? rawMsg.slice(0, 300) + '... ' : rawMsg From 1107119386d5c1bdbb560e69ba85736df2873d46 Mon Sep 17 00:00:00 2001 From: QSummerY <1272750872@qq.com> Date: Tue, 5 Sep 2023 11:14:52 +0800 Subject: [PATCH 2/2] fix ci --- helpdesk/views/api/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/views/api/index.py b/helpdesk/views/api/index.py index c5635b56..cd17737f 100644 --- a/helpdesk/views/api/index.py +++ b/helpdesk/views/api/index.py @@ -30,7 +30,7 @@ async def index(): @router.get('/user/me') -async def user(current_user: User = Depends(get_current_user)) -> dict: +async def user(current_user: User = Depends(get_current_user)): return current_user