From 8a1742521ea274bef9f8ed644303d05aa790bbe1 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 12 Jul 2022 11:25:38 +0800 Subject: [PATCH] Update index.html --- app/admin/view/file/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/admin/view/file/index.html b/app/admin/view/file/index.html index bf975b95e..b1c4052de 100644 --- a/app/admin/view/file/index.html +++ b/app/admin/view/file/index.html @@ -34,6 +34,8 @@ field: 'xurl', title: '查看文件', width: '8%', align: 'center', templet: function (d) { if (typeof d.mime === 'string' && /^image\//.test(d.mime)) { return laytpl('
').render(d) + } else if (typeof d.mime === 'string' && /^(video|audio)\//.test(d.mime)) { + return laytpl('
查看
').render(d); } else { return laytpl('
查看
').render(d); }