修复代码生成模板文件上传组件缺少ctx的问题

pull/224/MERGE
RuoYi 2020-10-19 13:32:13 +08:00
parent 260370c328
commit 5332756526
2 changed files with 33 additions and 33 deletions

View File

@ -223,7 +223,7 @@
$(".file-upload").each(function (i) {
var val = $("input[name='" + this.id + "']").val()
$(this).fileinput({
'uploadUrl': '/common/upload',
'uploadUrl': ctx + 'common/upload',
initialPreviewAsData: true,
initialPreview: [val],
maxFileCount: 1,