From b4d2b6120106770cb64f0f9c75970842437fbf35 Mon Sep 17 00:00:00 2001 From: xingyu Date: Thu, 27 Apr 2023 13:03:10 +0800 Subject: [PATCH] feat: upload file --- src/views/infra/file/file.data.ts | 7 +++++-- src/views/infra/file/index.vue | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/infra/file/file.data.ts b/src/views/infra/file/file.data.ts index f07fed67..1741390c 100644 --- a/src/views/infra/file/file.data.ts +++ b/src/views/infra/file/file.data.ts @@ -8,7 +8,7 @@ export const columns: BasicColumn[] = [ }, { title: '文件名', - dataIndex: 'module', + dataIndex: 'name', width: 200 }, { @@ -19,7 +19,10 @@ export const columns: BasicColumn[] = [ { title: '文件 URL', dataIndex: 'url', - width: 300 + width: 300, + customRender: ({ text }) => { + return useRender.renderImg(text) + } }, { title: '文件路径', diff --git a/src/views/infra/file/index.vue b/src/views/infra/file/index.vue index bb96e9ca..c76a2c6a 100644 --- a/src/views/infra/file/index.vue +++ b/src/views/infra/file/index.vue @@ -5,6 +5,7 @@