From 6c5f991494b7eb16c1c266e03aeffebf1e14e31c Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Tue, 12 Jul 2022 18:32:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E4=BB=A4=E7=89=8C=20is=5Fvalid=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/profile/ConnectionToken.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/profile/ConnectionToken.vue b/src/views/profile/ConnectionToken.vue index b1ecc0d5b..32c12deff 100644 --- a/src/views/profile/ConnectionToken.vue +++ b/src/views/profile/ConnectionToken.vue @@ -25,14 +25,14 @@ export default { columns: [ 'id', 'type_display', 'user_display', 'system_user_display', 'asset_display', 'application_display', - 'date_expired', 'validity', + 'date_expired', 'is_valid', 'date_created', 'created_by', 'org_name', 'actions' ], columnsShow: { min: ['id', 'actions'], default: [ - 'id', 'type_display', 'date_expired', 'validity', 'actions' + 'id', 'type_display', 'date_expired', 'is_valid', 'actions' ] }, columnsMeta: { @@ -51,7 +51,7 @@ export default { name: 'Expired', title: this.$t('setting.Expire'), type: 'info', - can: ({ row }) => row.validity, + can: ({ row }) => row['is_valid'], callback: function({ row }) { this.$axios.patch(`${ajaxUrl}${row.id}/expire/`, ).then(res => {