From 1b0c89a704681243230aef08a01884a3d484589e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Thu, 16 Feb 2023 14:57:12 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B0=83=E6=95=B4=E5=AE=A1=E8=AE=A1?= =?UTF-8?q?=E5=8F=B0=E4=BB=AA=E8=A1=A8=E7=9B=98=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/Audit/CardSummary.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/dashboard/Audit/CardSummary.vue b/src/views/dashboard/Audit/CardSummary.vue index 6c33f9e6e..1516f91d1 100644 --- a/src/views/dashboard/Audit/CardSummary.vue +++ b/src/views/dashboard/Audit/CardSummary.vue @@ -33,7 +33,7 @@ export default { tip: this.$t('dashboard.SessionData') }, data: { - total_count_login_users: 0, + total_count_user_login_logs: 0, total_count_operate_logs: 0, total_count_change_password_logs: 0, total_count_online_sessions: 0, @@ -49,7 +49,7 @@ export default { title: this.$t('dashboard.LoginNum'), body: { route: { name: `LoginLog` }, - count: this.data.total_count_login_users, + count: this.data.total_count_user_login_logs, disabled: !this.$hasPerm('audits.view_userloginlog') } }, @@ -111,7 +111,7 @@ export default { methods: { async getData() { this.data = await this.$axios.get(`/api/v1/index/?days=${this.days} - &total_count_login_users=1 + &total_count_user_login_logs=1 &total_count_operate_logs=1 &total_count_change_password_logs=1 &total_count_online_sessions=1