Skip to content

Commit bfc4717

Browse files
authored
fix(ui): 修复策略编辑模态框和列表确认标题及标签 (#15)
1 parent 5b6f8a4 commit bfc4717

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/pages/strategy/group/group-edit-modal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ export const GroupEditModal: React.FC<GroupEditModalProps> = (props) => {
6767

6868
useEffect(() => {
6969
if (open && grounpDetail) {
70-
form?.setFieldsValue(grounpDetail)
70+
form?.setFieldsValue({
71+
...grounpDetail,
72+
categoriesIds: grounpDetail.categories?.map((item) => item.id) || []
73+
})
7174
return
7275
}
7376
form?.resetFields()

src/pages/strategy/list/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ const StrategyMetric: React.FC = () => {
343343
break
344344
case ActionKey.DELETE:
345345
confirm({
346-
title: '请确认是否删除该策略组?',
346+
title: '请确认是否删除该策略?',
347347
icon: <ExclamationCircleFilled />,
348348
content: '此操作不可逆',
349349
onOk() {
@@ -520,7 +520,7 @@ const StrategyMetric: React.FC = () => {
520520
}}
521521
>
522522
<div className='flex justify-between items-center'>
523-
<div className='font-bold text-lg'>策略组</div>
523+
<div className='font-bold text-lg'>策略列表</div>
524524
<Space size={8}>
525525
<Button type='primary' onClick={handleOpenStrategyTypeModal}>
526526
添加

0 commit comments

Comments
 (0)