mirror of
https://github.com/netfun2000/rttys_zhaojh329.git
synced 2026-02-27 09:53:24 +08:00
web page: Fix bug: Cannot display download file list correctly
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
+5
-3
@@ -112,20 +112,22 @@ export default {
|
||||
h('strong', ' ' + params.row.name)
|
||||
]);
|
||||
else
|
||||
return params.row.name;
|
||||
return h('span', params.row.name);
|
||||
}
|
||||
}, {
|
||||
title: 'Size',
|
||||
key: 'size',
|
||||
sortable: true,
|
||||
render: (h, params) => params.row.size && '%1024mB'.format(params.row.size)
|
||||
render: (h, params) => {
|
||||
return h('span', params.row.size && '%1024mB'.format(params.row.size));
|
||||
}
|
||||
}, {
|
||||
title: 'modification',
|
||||
key: 'mtim',
|
||||
sortable: true,
|
||||
render: (h, params) => {
|
||||
if (params.row.mtim)
|
||||
return new Date(params.row.mtim * 1000).toLocaleString();
|
||||
return h('span', new Date(params.row.mtim * 1000).toLocaleString());
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user