Browse Source

fix: 文件上传权限问题

许俊杰 3 năm trước cách đây
mục cha
commit
b439e3a407
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      Web/src/views/system/file/index.vue

+ 3 - 2
Web/src/views/system/file/index.vue

@@ -18,7 +18,7 @@
 				<el-form-item>
 					<el-button icon="ele-Refresh" @click="resetQuery"> 重置 </el-button>
 					<el-button type="primary" icon="ele-Search" @click="handleQuery" v-auth="'sysFile:page'"> 查询 </el-button>
-					<el-button icon="ele-UploadFilled" @click="openUploadDialog" v-auth="'sysFile:upload'"> 上传 </el-button>
+					<el-button icon="ele-UploadFilled" @click="openUploadDialog" v-auth="'sysFile:uploadFile'"> 上传 </el-button>
 				</el-form-item>
 			</el-form>
 		</el-card>
@@ -53,7 +53,7 @@
 				<el-table-column prop="createTime" label="创建时间" align="center" show-overflow-tooltip />
 				<el-table-column label="操作" width="140" fixed="right" align="center" show-overflow-tooltip>
 					<template #default="scope">
-						<el-button icon="ele-Download" size="small" text type="primary" @click="downloadFile(scope.row)" v-auth="'sysFile:download'"> 下载 </el-button>
+						<el-button icon="ele-Download" size="small" text type="primary" @click="downloadFile(scope.row)" v-auth="'sysFile:downloadFile'"> 下载 </el-button>
 						<el-button icon="ele-Delete" size="small" text type="danger" @click="delFile(scope.row)" v-auth="'sysFile:delete'"> 删除 </el-button>
 					</template>
 				</el-table-column>
@@ -163,6 +163,7 @@ const resetQuery = () => {
 
 // 打开上传页面
 const openUploadDialog = () => {
+	state.fileList = [];
 	state.dialogVisible = true;
 };