新增前端vue

This commit is contained in:
2025-11-26 13:55:01 +08:00
parent ae391f1b94
commit ffd5a6ad66
781 changed files with 83348 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import FileService from '../service/FileService';
import { router } from '../router';
const service: FileService = new FileService();
router.post('/menuRoute', async (ctx) => {
const files: any = ctx.request.files.file;
console.log(files);
if (files.length === undefined) {
service.upload(ctx, files, false);
} else {
service.upload(ctx, files, true);
}
});

View File

@@ -0,0 +1,8 @@
import MenuService from '../service/MenuService';
import { router } from '../router';
const service: MenuService = new MenuService();
router.get('/menuRoute', async (ctx) => {
ctx.body = await service.menuRoute(ctx);
});

View File

@@ -0,0 +1,12 @@
import UserService from '../service/UserService';
import { router } from '../router';
const service: UserService = new UserService();
router.get('/login', async (ctx) => {
ctx.body = await service.login(ctx);
});
router.get('/index', async (ctx) => {
ctx.body = await service.index(ctx);
});