修复表单响应性问题 & 更新套餐管理接口字段
This commit is contained in:
@@ -207,7 +207,7 @@ function Tab(props: {
|
||||
}
|
||||
|
||||
function SendMsgByUsername() {
|
||||
const form = useFormContext<LoginSchema>()
|
||||
const phone = form.watch('username')
|
||||
const {control} = useFormContext<LoginSchema>()
|
||||
const phone = useWatch({control, name: 'username'})
|
||||
return <SendMsg phone={phone}/>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user