Просмотр исходного кода

为拖拽功能锁定按钮增加仅拥有权限才能使用

zhangxiao 1 год назад
Родитель
Сommit
85249c5d60
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/views/authority/resource/index.vue

+ 2 - 1
src/views/authority/resource/index.vue

@@ -12,7 +12,8 @@
           <template #title>
             <span>{{ $t('menu.resource.title') }}</span>
             <a-tooltip content="点击后可通过拖拽更改资源结构,再次点击来关闭" background-color="#165DFF">
-              <a-button type="outline" style="float: right;" @click="toggleDraggable" :style="{color: buttonColor}">
+              <a-button type="outline" style="float: right;" @click="toggleDraggable" :style="{color: buttonColor}"
+              v-has-permi="'/base/syresource!update'">
                 <component :is="lockIcon" />
               </a-button>
             </a-tooltip>