fix(项目设置): 修复文件管理偶尔情况下不会出现上传文件按钮的问题

--bug=1018440 --user=宋天阳 【项目设置】文件管理-默认模块下的“添加文件”按钮没了。。
https://www.tapd.cn/55049933/s/1267724
This commit is contained in:
song-tianyang 2022-10-19 15:49:53 +08:00 committed by 刘瑞斌
parent e450297353
commit 81c68f23a1
1 changed files with 5 additions and 5 deletions

View File

@ -6,8 +6,12 @@
@change="change" @change="change"
@search="getProjectFiles" title=""> @search="getProjectFiles" title="">
<template v-slot:button> <template v-slot:button>
<ms-table-button icon="el-icon-upload2" v-if="moduleType==='repository'"
:content="$t('variables.add_file')"
@click="addRepositoryFile"
v-permission="['PROJECT_FILE:READ+UPLOAD+JAR']"/>
<el-upload <el-upload
v-if="moduleType==='module'" v-else
action="" action=""
multiple multiple
:show-file-list="false" :show-file-list="false"
@ -18,10 +22,6 @@
:content="$t('variables.add_file')" :content="$t('variables.add_file')"
v-permission="['PROJECT_FILE:READ+UPLOAD+JAR']"/> v-permission="['PROJECT_FILE:READ+UPLOAD+JAR']"/>
</el-upload> </el-upload>
<ms-table-button icon="el-icon-upload2" v-else-if="moduleType==='repository'"
:content="$t('variables.add_file')"
@click="addRepositoryFile"
v-permission="['PROJECT_FILE:READ+UPLOAD+JAR']"/>
</template> </template>
</ms-table-header> </ms-table-header>
</template> </template>