Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
fix: 修复ts报错问题
gaoSir9d88cea145a9
diff --git a/.idea/workspace.xml b/.idea/workspace.xmlindex 07931109..bdc42167 100644--- a/.idea/workspace.xml+++ b/.idea/workspace.xml@@ -4,14 +4,8 @@<option name="autoReloadType" value="SELECTIVE" /></component><component name="ChangeListManager">- <list default="true" id="8ce961ad-7c9e-494c-bc53-9ecde4358af8" name="更改" comment="feat(发布弹框): 上传图片和上传视频完成">+ <list default="true" id="8ce961ad-7c9e-494c-bc53-9ecde4358af8" name="更改" comment="feat(发布弹框): 发布API接入完成"><change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/api/plat/publish.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/api/plat/publish.ts" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/api/plat/types/publish.types.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/api/plat/types/publish.types.ts" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/app/[lng]/accounts/components/CalendarTiming/index.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/accounts/components/CalendarTiming/index.tsx" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasTextareaUpload.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasTextareaUpload.tsx" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/components/PublishDialog/compoents/PubParmasTextarea/VideoCoverSeting.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/PublishDialog/compoents/PubParmasTextarea/VideoCoverSeting.tsx" afterDir="false" />- <change beforePath="$PROJECT_DIR$/src/components/PublishDialog/index.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/PublishDialog/index.tsx" afterDir="false" /><change beforePath="$PROJECT_DIR$/src/components/PublishDialog/publishDialog.type.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/PublishDialog/publishDialog.type.ts" afterDir="false" /></list><option name="SHOW_DIALOG" value="false" />@@ -30,6 +24,9 @@<option name="PUSH_AUTO_UPDATE" value="true" /><option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /></component>+ <component name="ProblemsViewState">+ <option name="selectedTabId" value="ProjectErrors" />+ </component><component name="ProjectColorInfo">{"associatedIndex": 4}</component>@@ -90,7 +87,7 @@<option name="presentableId" value="Default" /><updated>1751977665735</updated><workItem from="1751977666787" duration="3372000" />- <workItem from="1751981060502" duration="18108000" />+ <workItem from="1751981060502" duration="18248000" /></task><task id="LOCAL-00001" summary="feat(CalendarTiming): 优化发布记录列表展示 - 调整日历记录项的样式和布局 - 优化 RecordCore组件,添加平台图标和时间显示 - 修改 CalendarTimingItem 组件,移除不必要的 Fragment -调整 index.tsx 中的日期格式化逻辑"><option name="closed" value="true" />@@ -132,7 +129,15 @@<option name="project" value="LOCAL" /><updated>1752057751552</updated></task>- <option name="localTasksCounter" value="6" />+ <task id="LOCAL-00006" summary="feat(发布弹框): 发布API接入完成">+ <option name="closed" value="true" />+ <created>1752066983987</created>+ <option name="number" value="00006" />+ <option name="presentableId" value="LOCAL-00006" />+ <option name="project" value="LOCAL" />+ <updated>1752066983987</updated>+ </task>+ <option name="localTasksCounter" value="7" /><servers /></component><component name="TypeScriptGeneratedFilesManager">@@ -146,6 +151,7 @@<MESSAGE value="fix: platInfo添加一些非空判断" /><MESSAGE value="feat: 发布记录展示添加状态展示" /><MESSAGE value="feat(发布弹框): 上传图片和上传视频完成" />- <option name="LAST_COMMIT_MESSAGE" value="feat(发布弹框): 上传图片和上传视频完成" />+ <MESSAGE value="feat(发布弹框): 发布API接入完成" />+ <option name="LAST_COMMIT_MESSAGE" value="feat(发布弹框): 发布API接入完成" /></component></project>\ No newline at end of filediff --git a/src/components/PublishDialog/publishDialog.type.ts b/src/components/PublishDialog/publishDialog.type.tsindex 780b20a1..244cb716 100644--- a/src/components/PublishDialog/publishDialog.type.ts+++ b/src/components/PublishDialog/publishDialog.type.ts@@ -14,7 +14,7 @@ export interface IImgFile {// 图片高度height: number;// 前端上传到oss后的url- ossUrl: string;+ ossUrl?: string;}export interface IVideoFile {@@ -23,7 +23,7 @@ export interface IVideoFile {// 前端临时路径,注意不要存到数据库videoUrl: string;// 前端上传到oss后的url- ossUrl: string;+ ossUrl?: string;filename: string;// 视频宽度width: number;