Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
fix(发布弹框): 修复右侧预览不正常隐藏的问题
gaoSird7f049a13578
diff --git a/.idea/workspace.xml b/.idea/workspace.xmlindex 523bd1f7..03216206 100644--- a/.idea/workspace.xml+++ b/.idea/workspace.xml@@ -4,10 +4,9 @@<option name="autoReloadType" value="SELECTIVE" /></component><component name="ChangeListManager">- <list default="true" id="8ce961ad-7c9e-494c-bc53-9ecde4358af8" name="更改" comment="feat(发布):1. b站添加是否转载、选择分区参数。 2. 发布记录展示时间修复,将后端返回的时间转为当前时区给用户展示。 3. b站添加强制拦截,分区、转载不选择会强制拦截用户。">+ <list default="true" id="8ce961ad-7c9e-494c-bc53-9ecde4358af8" name="更改" comment="fix(日历):修复了单元格没有预期时间但是发布记录还是不会填满单元格的问题。"><change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/CalendarTimingItem.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/accounts/components/CalendarTiming/CalendarTimingItem/CalendarTimingItem.tsx" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/middleware.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/middleware.ts" afterDir="false" />+ <change beforePath="$PROJECT_DIR$/src/components/PublishDialog/index.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/PublishDialog/index.tsx" afterDir="false" /></list><option name="SHOW_DIALOG" value="false" /><option name="HIGHLIGHT_CONFLICTS" value="true" />@@ -106,7 +105,8 @@<workItem from="1752200816463" duration="23828000" /><workItem from="1752459064500" duration="10175000" /><workItem from="1752498765091" duration="2121000" />- <workItem from="1752543943603" duration="2011000" />+ <workItem from="1752543943603" duration="2208000" />+ <workItem from="1752546939831" duration="2147000" /></task><task id="LOCAL-00001" summary="feat(CalendarTiming): 优化发布记录列表展示 - 调整日历记录项的样式和布局 - 优化 RecordCore组件,添加平台图标和时间显示 - 修改 CalendarTimingItem 组件,移除不必要的 Fragment -调整 index.tsx 中的日期格式化逻辑"><option name="closed" value="true" />@@ -284,7 +284,15 @@<option name="project" value="LOCAL" /><updated>1752488650807</updated></task>- <option name="localTasksCounter" value="23" />+ <task id="LOCAL-00023" summary="fix(日历):修复了单元格没有预期时间但是发布记录还是不会填满单元格的问题。">+ <option name="closed" value="true" />+ <created>1752546046166</created>+ <option name="number" value="00023" />+ <option name="presentableId" value="LOCAL-00023" />+ <option name="project" value="LOCAL" />+ <updated>1752546046166</updated>+ </task>+ <option name="localTasksCounter" value="24" /><servers /></component><component name="TypeScriptGeneratedFilesManager">@@ -326,6 +334,7 @@<MESSAGE value="feat(发布):b站添加标题参数" /><MESSAGE value="feat(发布):发布记录添加账户筛选API" /><MESSAGE value="feat(发布):1. b站添加是否转载、选择分区参数。 2. 发布记录展示时间修复,将后端返回的时间转为当前时区给用户展示。 3. b站添加强制拦截,分区、转载不选择会强制拦截用户。" />- <option name="LAST_COMMIT_MESSAGE" value="feat(发布):1. b站添加是否转载、选择分区参数。 2. 发布记录展示时间修复,将后端返回的时间转为当前时区给用户展示。 3. b站添加强制拦截,分区、转载不选择会强制拦截用户。" />+ <MESSAGE value="fix(日历):修复了单元格没有预期时间但是发布记录还是不会填满单元格的问题。" />+ <option name="LAST_COMMIT_MESSAGE" value="fix(日历):修复了单元格没有预期时间但是发布记录还是不会填满单元格的问题。" /></component></project>\ No newline at end of filediff --git a/src/components/PublishDialog/index.tsx b/src/components/PublishDialog/index.tsxindex f7677e1c..404d79a7 100644--- a/src/components/PublishDialog/index.tsx+++ b/src/components/PublishDialog/index.tsx@@ -255,12 +255,12 @@ const PublishDialog = memo(setStep(0);}}- if (step === 0) {+ if (step === 0 && newPubListChoosed.length !== 0) {const isFront = newPubListChoosed.every((v) =>v.params.des ||v.params.video ||- v.params.images?.length,+ v.params.images?.length !== 0,);if (isFront) {setStep(1);