From 20ca5dc668a3b29f19f0d165a03e53d8fbb6ab93 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Fri, 18 Jul 2025 10:23:16 +0800 Subject: [PATCH] 优化登陆日志 --- src/views/user/login/Login.vue | 1 + src/views/user/userLoginList.vue | 87 ++++++++++++++++++++++----------------------------------------------------------------- 2 files changed, 23 insertions(+), 65 deletions(-) diff --git a/src/views/user/login/Login.vue b/src/views/user/login/Login.vue index 90a5740..56b54e6 100644 --- a/src/views/user/login/Login.vue +++ b/src/views/user/login/Login.vue @@ -58,6 +58,7 @@ export default { }; }, created() { + localStorage.clear(); this.refreshCaptcha(); }, components: { diff --git a/src/views/user/userLoginList.vue b/src/views/user/userLoginList.vue index 5dfc5b7..f2a6407 100644 --- a/src/views/user/userLoginList.vue +++ b/src/views/user/userLoginList.vue @@ -5,12 +5,9 @@
@@ -23,35 +20,23 @@ - + - - + - + - + {{ $t('common.search') }} @@ -63,50 +48,22 @@
{{ $t('userLogin.table.title') }}
- - - + + + - - - - + + + + - +
@@ -155,9 +112,9 @@ export default { page: this.pagination.current, row: this.pagination.size } - const { data, records } = await queryUserLogin(params) + const { data, total } = await queryUserLogin(params) this.userLoginInfo.logs = data - this.pagination.total = records + this.pagination.total = total } catch (error) { this.$message.error(this.$t('userLogin.fetchError')) } finally { -- libgit2 0.21.4