diff --git a/src/api/form.ts b/src/api/form.ts new file mode 100644 index 0000000..560d077 --- /dev/null +++ b/src/api/form.ts @@ -0,0 +1,18 @@ +import { api } from './instance' + +export const sendJoinSZTeamForm = async ({ + discordId, + content, +}: { + discordId: string + content: string +}) => { + return await api({ + method: 'POST', + url: `/joinSZTeamForm`, + data: { + discordId, + content, + }, + }) +} diff --git a/src/views/SZTeam/components/JoinTeamForm.vue b/src/views/SZTeam/components/JoinTeamForm.vue index 8a21024..31c6365 100644 --- a/src/views/SZTeam/components/JoinTeamForm.vue +++ b/src/views/SZTeam/components/JoinTeamForm.vue @@ -1,69 +1,105 @@ - \ No newline at end of file +