feat(auth): 添加登录功能模块

- 引入新的登录中间件模块
- 在应用中间件链中注册登录处理器
- 修改前端登录接口调用路径
- 添加服务器选择下拉组件
- 实现服务器ID状态管理
- 更新登录表单数据绑定结构
This commit is contained in:
2025-12-25 01:33:46 +08:00
parent 6e50c39c62
commit af3a7c83e8
2 changed files with 6 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import koaStatic from 'koa-static';
import registry from "./registry.js";
import * as log4js from "../log4js.js";
import auth from "./auth.js";
import login from "./login.js";
const app = new Koa();
const router = new Router();
@@ -22,6 +23,7 @@ app.proxy = true;
app.use(auth)
app.use(router.routes());
app.use(registry)
app.use(login)
app.use(router.allowedMethods());
app.use(koaStatic('/www'))