소스 검색

feat✨ 针对admin角色删除功能去除

zhangwenjian 5 년 전
부모
커밋
4f368db12f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/role/index.vue

+ 1 - 1
src/views/role/index.vue

@@ -136,12 +136,12 @@
                 @click="handleDataScope(scope.row)"
               >数据权限</el-button>
               <el-button
+                v-if="scope.row.roleKey!=='admin'"
                 v-permisaction="['system:sysrole:remove']"
                 size="mini"
                 type="text"
                 icon="el-icon-delete"
                 @click="handleDelete(scope.row)"
-                @v-show="scope.row.roleKey != 'admin'"
               >删除</el-button>
             </template>
           </el-table-column>