diff --git a/ruoyi-generator/src/main/resources/vm/html/add.html.vm b/ruoyi-generator/src/main/resources/vm/html/add.html.vm index 80b8ffffc..d4e67f8c0 100644 --- a/ruoyi-generator/src/main/resources/vm/html/add.html.vm +++ b/ruoyi-generator/src/main/resources/vm/html/add.html.vm @@ -221,7 +221,7 @@ #if($column.edit && !$column.superColumn && !$column.pk && $column.htmlType == "upload") $(".file-upload").fileinput({ - uploadUrl: '/common/upload', + uploadUrl: ctx + 'common/upload', maxFileCount: 1, autoReplace: true }).on('fileuploaded', function (event, data, previewId, index) {