From 5b3dc2bc48c3b0c75d528d5e3b9c7b84a2857a60 Mon Sep 17 00:00:00 2001 From: Bai Date: Wed, 8 Feb 2023 15:20:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20connection=20token?= =?UTF-8?q?=20=E9=A1=B5=E9=9D=A2=E4=BF=A1=E6=81=AF=E5=AD=97=E6=AE=B5=20act?= =?UTF-8?q?ions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/profile/ConnectionToken.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/profile/ConnectionToken.vue b/src/views/profile/ConnectionToken.vue index 02b31038a..337f82bff 100644 --- a/src/views/profile/ConnectionToken.vue +++ b/src/views/profile/ConnectionToken.vue @@ -22,7 +22,6 @@ export default { helpMessage: this.$t('setting.helpText.ConnectionTokenList'), tableConfig: { url: ajaxUrl, - columnsExclude: ['actions'], columnsExtra: ['action'], columnsShow: { min: ['id', 'actions'], @@ -38,7 +37,9 @@ export default { action: { label: this.$t('common.Action'), formatter: function(row) { - return row.actions.map(item => { return item.label }).join(', ') + return row.actions.map(item => { + return item.label + }).join(', ') } }, actions: { @@ -51,7 +52,7 @@ export default { name: 'Expired', title: this.$t('setting.Expire'), type: 'info', - can: ({ row }) => row['is_valid'], + can: ({ row }) => !row['is_expired'], callback: function({ row }) { this.$axios.patch(`${ajaxUrl}${row.id}/expire/`, ).then(res => {