Browse Source
- 将主应用的端口号从3000更改为3001 - 在 AuthController 中新增 validateUsername 方法,用于验证用户名 - 更新登录表单,使用 hx-post 进行异步提交,并引入新的用户名输入组件pure
4 changed files with 16 additions and 3 deletions
@ -0,0 +1,4 @@ |
|||||
|
div(hx-target="this" hx-swap="outerHTML" hx-post="/login/validate/username?aa=1") |
||||
|
input(type="text" id="username" value=value name="username" placeholder="用户名" hx-indicator="#ind") |
||||
|
//- img(id="ind" src="/img/bars.svg" class="htmx-indicator") |
||||
|
div sda |
||||
Loading…
Reference in new issue