修改标题换行替换

This commit is contained in:
筱野
2026-03-10 21:34:45 +08:00
parent 63bcf6fe86
commit 883ce3c2c4

View File

@@ -381,6 +381,7 @@ const PublishBall: React.FC = () => {
image_list,
wechat,
id,
title,
...rest
} = formData[0];
const { min, max, organizer_joined } = players;
@@ -389,6 +390,7 @@ const PublishBall: React.FC = () => {
...activityInfo,
...descriptionInfo,
...timeRange,
title: title?.replace(/\n/g, ''),
max_players: max,
min_players: min,
organizer_joined: organizer_joined === true ? 1 : 0,
@@ -453,6 +455,7 @@ const PublishBall: React.FC = () => {
skill_level,
is_substitute_supported,
id,
title,
...rest
} = item;
const { min, max, organizer_joined } = players;
@@ -461,6 +464,7 @@ const PublishBall: React.FC = () => {
...activityInfo,
...descriptionInfo,
...timeRange,
title: title?.replace(/\n/g, ' '),
max_players: max,
min_players: min,
organizer_joined: organizer_joined === true ? 1 : 0,