File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff 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 ( )
Original file line number Diff line number Diff 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 添加
You can’t perform that action at this time.
0 commit comments