Browse Source

我的专栏信息未完善修复

lwei 11 months ago
parent
commit
21f70f430d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/Column/ColumnIndex.tsx

+ 1 - 3
src/Column/ColumnIndex.tsx

@@ -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