Browse Source

fix: change role

DESKTOP-USV654P\pc 3 weeks ago
parent
commit
d246ac8361
2 changed files with 3 additions and 1 deletions
  1. 1 1
      Makefile
  2. 2 0
      src/views/system/role/index.vue

+ 1 - 1
Makefile

@@ -12,7 +12,7 @@ build:
 
 commit:
 	git add . && \
-	git commit --no-verify -m "fix: change studentChange"
+	git commit --no-verify -m "fix: change role"
 
 checkPre:
 	git checkout pre

+ 2 - 0
src/views/system/role/index.vue

@@ -29,12 +29,14 @@
             {
               icon: 'clarity:note-edit-line',
               auth: 'role:edit',
+              disabled: record.isSystem === 1,
               onClick: handleEdit.bind(null, record),
             },
             {
               icon: 'ant-design:delete-outlined',
               auth: 'role:delete',
               color: 'error',
+              disabled: record.isSystem === 1,
               popConfirm: {
                 title: t('是否确认删除'),
                 confirm: handleDelete.bind(null, record),