Skip to content

Commit 36028b3

Browse files
committed
fix(frontend): show file url in file table
1 parent a06a5ea commit 36028b3

File tree

1 file changed

+6
-5
lines changed
  • apps/frontend/src/pages/tasks.[id].edit/partials/InputData

1 file changed

+6
-5
lines changed

apps/frontend/src/pages/tasks.[id].edit/partials/InputData/index.tsx

+6-5
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export interface QueuedFile {
4949
size: number;
5050
status: UploadStatus;
5151
reason?: string;
52-
path: string;
5352
file: File;
5453
}
5554

@@ -116,7 +115,6 @@ const normalizeFiles = (files: File[]) => {
116115
name: file.name,
117116
size: file.size,
118117
status: UploadStatus.Waiting,
119-
path: file.webkitRelativePath === '' ? './' : file.webkitRelativePath,
120118
file,
121119
};
122120
});
@@ -304,12 +302,15 @@ const InputData = () => {
304302
},
305303
{
306304
title: '地址',
307-
dataIndex: 'path',
305+
dataIndex: 'url',
308306
align: 'left',
309307
responsive: ['md', 'lg'],
310-
key: 'path',
308+
key: 'url',
311309
render: (text: string) => {
312-
return formatter.format('ellipsis', text, { maxWidth: 160, type: 'tooltip' });
310+
return formatter.format('ellipsis', `${location.protocol}//${location.host}${text}`, {
311+
maxWidth: 160,
312+
type: 'tooltip',
313+
});
313314
},
314315
},
315316
{

0 commit comments

Comments
 (0)