|
@@ -156,7 +156,7 @@ const ColumnIndex: React.FC<IColumnIndexProps> = props => {
|
|
|
}
|
|
|
|
|
|
const handleOpenModel = (type: 'editInfo' | 'openCenter' | 'openCreate') => {
|
|
|
- if (!columnAuthor?.IsImproveInformation) {
|
|
|
+ if (type !== 'editInfo' && !columnAuthor?.IsImproveInformation) {
|
|
|
message.error('请先完善专栏信息')
|
|
|
return
|
|
|
}
|
|
@@ -164,7 +164,6 @@ const ColumnIndex: React.FC<IColumnIndexProps> = props => {
|
|
|
case 'editInfo':
|
|
|
setEditInfoVisible(true)
|
|
|
break
|
|
|
-
|
|
|
case 'openCenter':
|
|
|
setOpenCenter(true)
|
|
|
break
|
|
@@ -181,7 +180,6 @@ const ColumnIndex: React.FC<IColumnIndexProps> = props => {
|
|
|
case 'editInfo':
|
|
|
setEditInfoVisible(false)
|
|
|
break
|
|
|
-
|
|
|
case 'openCenter':
|
|
|
setOpenCenter(false)
|
|
|
break
|