feature: 面板
This commit is contained in:
parent
fef82b5a66
commit
a9c1c75826
|
|
@ -50,7 +50,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|||
$(document).on('click', '.btn-preview', function (e) {
|
||||
e.preventDefault();
|
||||
var fileType = $(this).data('type'); // 自动从 data-type 获取,比如 pdf, jpg, doc
|
||||
var url = $(this).attr('href');
|
||||
var url = $(this).attr('url');
|
||||
|
||||
if (fileType === 'pdf') {
|
||||
Layer.open({
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user