浏览代码

Attachment List bug

star7th 6 年之前
父节点
当前提交
f12c24e908
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web_src/src/components/page/edit/AttachmentList.vue

+ 1 - 1
web_src/src/components/page/edit/AttachmentList.vue

@@ -26,7 +26,7 @@
             width="150">
             <template slot-scope="scope">
               <el-button @click="downloadFile(scope.row)" type="text" size="small">{{$t('download')}}</el-button>
-              <el-button @click="insertFile(scope.row)" type="text" size="small">{{$t('insert')}}</el-button>
+              <el-button @click="insertFile(scope.row)" type="text" size="small" v-if="manage" >{{$t('insert')}}</el-button>
               <el-button type="text" size="small" @click="deleteFile(scope.row)" v-if="manage">{{$t('delete')}}</el-button>
             </template>
           </el-table-column>