feat: Add form demo

This commit is contained in:
陈凯龙
2022-01-27 16:41:29 +08:00
parent dbf3b0f5a3
commit 7795d2a4fe
12 changed files with 1823 additions and 85 deletions

View File

@@ -117,7 +117,7 @@ const signIn = async () => {
if (validate) {
loading.value = true
const { getFormData } = methods
const formData = (await getFormData()) as UserLoginType
const formData = await getFormData<UserLoginType>()
const res = await loginApi(formData)
.catch(() => {})