From fad49bd4bf560caae3e66e8fc96feb8cf5849585 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 2 Jun 2021 17:23:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20admin=E7=94=A8=E6=88=B7=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=97=A0=E6=B3=95=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/system/user/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/views/system/user/index.vue b/frontend/src/views/system/user/index.vue index 32a9ff2ae0..9c8ceae97f 100644 --- a/frontend/src/views/system/user/index.vue +++ b/frontend/src/views/system/user/index.vue @@ -187,6 +187,7 @@ export default { show: this.checkPermission(['user:edit']) }, { label: this.$t('commons.delete'), icon: 'el-icon-delete', type: 'danger', click: this.del, + disabled: this.btnDisabled, show: this.checkPermission(['user:del']) }, { label: this.$t('member.edit_password'), icon: 'el-icon-s-tools', type: 'success', click: this.editPassword, @@ -489,6 +490,9 @@ export default { allRoles().then(res => { this.roles = res.data }) + }, + btnDisabled(row) { + return row.userId === 1 } } }