mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-11 15:15:34 +08:00
remove 国际化删除, 依赖精简
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
import FileService from '../service/FileService';
|
||||
import FileService from '../service/FileService'
|
||||
|
||||
class FileController {
|
||||
private service: FileService = new FileService();
|
||||
private service: FileService = new FileService()
|
||||
|
||||
upload = async (ctx) => {
|
||||
const files = ctx.request.files.file;
|
||||
console.log(files);
|
||||
const files = ctx.request.files.file
|
||||
console.log(files)
|
||||
|
||||
if (files.length === undefined) {
|
||||
this.service.upload(ctx, files, false);
|
||||
this.service.upload(ctx, files, false)
|
||||
} else {
|
||||
this.service.upload(ctx, files, true);
|
||||
this.service.upload(ctx, files, true)
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export default new FileController();
|
||||
export default new FileController()
|
||||
|
||||
Reference in New Issue
Block a user