jeecgboot vue3 ui

This commit is contained in:
zhangdaiscott
2021-10-20 14:32:09 +08:00
parent acc9633d62
commit 5a8812318e
854 changed files with 87119 additions and 199 deletions

View File

@@ -0,0 +1,18 @@
import FileService from '../service/FileService';
class FileController {
private service: FileService = new FileService();
upload = async (ctx) => {
const files = ctx.request.files.file;
console.log(files);
if (files.length === undefined) {
this.service.upload(ctx, files, false);
} else {
this.service.upload(ctx, files, true);
}
};
}
export default new FileController();