|
@@ -148,7 +148,12 @@ $(document).ready(() => {
|
|
|
if (files !== null && files !== undefined) {
|
|
|
for (const [i, f] of files.entries()) {
|
|
|
html.push('<tr>');
|
|
|
- html.push('<td style="width: 200px">', f.filename + f.fileext, '</td>');
|
|
|
+ if (f.viewpath) {
|
|
|
+ html.push(`<td style="width: 200px"><a href="${f.viewpath}" target="_blank">${f.filename}${f.fileext}</a></td>`);
|
|
|
+ //html.push(`<td style="width: 200px"><a href="download/file?b_id=${id}&index=${i}&view=1" target="_blank">${f.filename}${f.fileext}</a></td>`);
|
|
|
+ } else {
|
|
|
+ html.push(`<td style="width: 200px"><a href="download/file?b_id=${id}&index=${i}" title="下载">${f.filename}${f.fileext}</a></td>`);
|
|
|
+ }
|
|
|
html.push('<td>', f.username, '</td>');
|
|
|
html.push('<td>', f.in_time, '</td>');
|
|
|
html.push('<td>');
|