mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-09-20 02:29:36 +08:00
修复Chrome76+删除弹出新窗口
This commit is contained in:
@@ -187,9 +187,8 @@ window.open('http://127.0.0.1:8012/picturesPreview?urls='+encodeURIComponent(fil
|
|||||||
}).on('pre-body.bs.table', function (e,data) {
|
}).on('pre-body.bs.table', function (e,data) {
|
||||||
// 每个data添加一列用来操作
|
// 每个data添加一列用来操作
|
||||||
$(data).each(function (index, item) {
|
$(data).each(function (index, item) {
|
||||||
item.action = "<a class='btn btn-default' target='_blank' href='${baseUrl}onlinePreview?url="
|
item.action = "<a class='btn btn-default' href='${baseUrl}onlinePreview?url="+ encodeURIComponent('${baseUrl}' + item.fileName ) +"'>预览</a>" +
|
||||||
+ encodeURIComponent('${baseUrl}' + item.fileName ) +"'>预览</a>" +
|
"<a class='btn btn-default' href='javascript:void(0);' onclick='deleteFile(\""+item.fileName+"\")'>删除</a>";
|
||||||
"<a class='btn btn-default' target='_blank' href='javascript:void(0);' onclick='deleteFile(\""+item.fileName+"\")'>删除</a>";
|
|
||||||
});
|
});
|
||||||
return data;
|
return data;
|
||||||
}).on('post-body.bs.table', function (e,data) {
|
}).on('post-body.bs.table', function (e,data) {
|
||||||
|
Reference in New Issue
Block a user