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 {