浏览代码

添加超管权限设置

tangning 2 年之前
父节点
当前提交
5acd985c15
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/system/role/index.vue

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

@@ -5,7 +5,7 @@
         <a-button type="primary" @click="handleCreate" v-if="getCheckPerm('role-add')"> 新增角色 </a-button>
       </template>
       <template #action="{ record }">
-        <TableAction
+        <TableAction  v-if="record.id != 1"
           :actions="[
             {
               label: t('common.edit'),