feature: 面板

This commit is contained in:
zhuyu 2025-05-26 11:00:33 +08:00
parent fef82b5a66
commit a9c1c75826

View File

@ -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({