修改弹窗
This commit is contained in:
@@ -118,6 +118,14 @@ const SelectStadium: React.FC<SelectStadiumProps> = ({
|
||||
const formData = stadiumDetailRef.current.getFormData()
|
||||
console.log('获取球馆表单数据:', formData)
|
||||
const { description, ...rest } = formData
|
||||
const { description: descriptionInfo} = description;
|
||||
if (descriptionInfo.length > 200 ) {
|
||||
Taro.showToast({
|
||||
title: `场地信息补充最多可输入200个字`,
|
||||
icon: "none",
|
||||
});
|
||||
return;
|
||||
};
|
||||
onConfirm({ ...rest, ...description })
|
||||
setSelectedStadium(null)
|
||||
setSearchValue('')
|
||||
|
||||
Reference in New Issue
Block a user