Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
feat: 封面添加获取第0帧
gaoSir55678f1c77b0
diff --git a/src/views/publish/children/pubRecord/page.tsx b/src/views/publish/children/pubRecord/page.tsxindex 9ed0198e..ed61085e 100644--- a/src/views/publish/children/pubRecord/page.tsx+++ b/src/views/publish/children/pubRecord/page.tsx@@ -161,8 +161,7 @@ export default function Page() {</div></div><div className="pubRecord-record-item-btns">- {/*<Button type="link">查看</Button>*/}- {v.status === 2 && (+ {v.status === 2 ? (<Buttontype="link"onClick={() => {@@ -182,6 +181,8 @@ export default function Page() {>重新发布</Button>+ ) : (+ <Button type="link">查看</Button>)}</div></li>diff --git a/src/views/publish/children/videoPage/components/VideoCoverSeting.tsx b/src/views/publish/children/videoPage/components/VideoCoverSeting.tsxindex 79212987..4a70b137 100644--- a/src/views/publish/children/videoPage/components/VideoCoverSeting.tsx+++ b/src/views/publish/children/videoPage/components/VideoCoverSeting.tsx@@ -91,7 +91,7 @@ const VideoCoverSeting = memo(setImgFile(value);return;}- getVideoCover(1);+ getVideoCover(0);}, [videoCoverSetingModal]);useEffect(() => {@@ -101,6 +101,7 @@ const VideoCoverSeting = memo(/* 获取封面 */const getVideoCover = async (n: number) => {+ if (!videoFile!.videoPath) return;setSliderVal(n);setVideoCoverLoading(true);const pathVideo = await ipcGetVideoCover(@@ -220,7 +221,7 @@ const VideoCoverSeting = memo(value={sliderVal}style={{ margin: '50px 0' }}step={1}- min={1}+ min={0}max={videoFile?.duration}onChange={setSliderVal}onChangeComplete={getVideoCover}diff --git a/src/views/publish/children/videoPage/page.tsx b/src/views/publish/children/videoPage/page.tsxindex 02a25d8e..87d01693 100644--- a/src/views/publish/children/videoPage/page.tsx+++ b/src/views/publish/children/videoPage/page.tsx@@ -56,7 +56,7 @@ export default function Page() {useEffect(() => {return () => {- // clear();+ clear();};}, []);