mirror of
https://github.com/m1ngsama/FUJI.git
synced 2025-12-24 10:51:27 +00:00
27 lines
573 B
TypeScript
27 lines
573 B
TypeScript
import { Button } from "@nextui-org/react"
|
|
import { activeClient } from "../../../utils/client"
|
|
|
|
export default function Page() {
|
|
return (
|
|
<div>
|
|
<Button
|
|
onClick={() => {
|
|
// 提交表单
|
|
activeClient.freshman.postFreshmanAdd({
|
|
requestBody: {
|
|
class: "1",
|
|
name: "1",
|
|
phone: "1",
|
|
qq: "1",
|
|
email: "1",
|
|
number: "1",
|
|
major: "1",
|
|
},
|
|
})
|
|
}}
|
|
>
|
|
提交表单
|
|
</Button>
|
|
</div>
|
|
)
|
|
}
|