修改标题换行替换
This commit is contained in:
@@ -381,6 +381,7 @@ const PublishBall: React.FC = () => {
|
|||||||
image_list,
|
image_list,
|
||||||
wechat,
|
wechat,
|
||||||
id,
|
id,
|
||||||
|
title,
|
||||||
...rest
|
...rest
|
||||||
} = formData[0];
|
} = formData[0];
|
||||||
const { min, max, organizer_joined } = players;
|
const { min, max, organizer_joined } = players;
|
||||||
@@ -389,6 +390,7 @@ const PublishBall: React.FC = () => {
|
|||||||
...activityInfo,
|
...activityInfo,
|
||||||
...descriptionInfo,
|
...descriptionInfo,
|
||||||
...timeRange,
|
...timeRange,
|
||||||
|
title: title?.replace(/\n/g, ''),
|
||||||
max_players: max,
|
max_players: max,
|
||||||
min_players: min,
|
min_players: min,
|
||||||
organizer_joined: organizer_joined === true ? 1 : 0,
|
organizer_joined: organizer_joined === true ? 1 : 0,
|
||||||
@@ -453,6 +455,7 @@ const PublishBall: React.FC = () => {
|
|||||||
skill_level,
|
skill_level,
|
||||||
is_substitute_supported,
|
is_substitute_supported,
|
||||||
id,
|
id,
|
||||||
|
title,
|
||||||
...rest
|
...rest
|
||||||
} = item;
|
} = item;
|
||||||
const { min, max, organizer_joined } = players;
|
const { min, max, organizer_joined } = players;
|
||||||
@@ -461,6 +464,7 @@ const PublishBall: React.FC = () => {
|
|||||||
...activityInfo,
|
...activityInfo,
|
||||||
...descriptionInfo,
|
...descriptionInfo,
|
||||||
...timeRange,
|
...timeRange,
|
||||||
|
title: title?.replace(/\n/g, ' '),
|
||||||
max_players: max,
|
max_players: max,
|
||||||
min_players: min,
|
min_players: min,
|
||||||
organizer_joined: organizer_joined === true ? 1 : 0,
|
organizer_joined: organizer_joined === true ? 1 : 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user