From 48dd9bfc7ac77f66c83d881c75e0c0c64e416838 Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Mon, 7 Dec 2020 17:04:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/assets/layuiadmin/modules/dialog.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/static/assets/layuiadmin/modules/dialog.js b/src/main/resources/static/assets/layuiadmin/modules/dialog.js index 867e445..cca7fef 100644 --- a/src/main/resources/static/assets/layuiadmin/modules/dialog.js +++ b/src/main/resources/static/assets/layuiadmin/modules/dialog.js @@ -241,6 +241,7 @@ layui.define(function(exports) { file: function (opt) { var self = this; var fileType = opt.type; + var customType = opt.customType; var url = 'route/file/uploadfile/v2/'; if (fileType == 'image') { url += '2'; @@ -251,6 +252,9 @@ layui.define(function(exports) { } else { url += '1'; } + if(customType) { + url += '?customType='+ customType; + } if (typeof (opt.maxFileCount) != 'undefined' && opt.maxFileCount != '') { self.maxFileCount = opt.maxFileCount; } else {