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 Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ export interface QueuedFile {
49
49
size : number ;
50
50
status : UploadStatus ;
51
51
reason ?: string ;
52
- path : string ;
53
52
file : File ;
54
53
}
55
54
@@ -116,7 +115,6 @@ const normalizeFiles = (files: File[]) => {
116
115
name : file . name ,
117
116
size : file . size ,
118
117
status : UploadStatus . Waiting ,
119
- path : file . webkitRelativePath === '' ? './' : file . webkitRelativePath ,
120
118
file,
121
119
} ;
122
120
} ) ;
@@ -304,12 +302,15 @@ const InputData = () => {
304
302
} ,
305
303
{
306
304
title : '地址' ,
307
- dataIndex : 'path ' ,
305
+ dataIndex : 'url ' ,
308
306
align : 'left' ,
309
307
responsive : [ 'md' , 'lg' ] ,
310
- key : 'path ' ,
308
+ key : 'url ' ,
311
309
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
+ } ) ;
313
314
} ,
314
315
} ,
315
316
{
You can’t perform that action at this time.
0 commit comments