From 3eeb6a4c8e09c57566ca9bd5ec055a8a8ed32e83 Mon Sep 17 00:00:00 2001 From: callmeyan Date: Tue, 24 Dec 2024 21:00:20 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E6=9B=B4=E6=96=B0=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/article/edit-modal.tsx | 4 ++-- src/pages/live/index.tsx | 4 ++-- src/pages/news/edit.tsx | 7 ++++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/article/edit-modal.tsx b/src/components/article/edit-modal.tsx index 3204629..b9be0c2 100644 --- a/src/components/article/edit-modal.tsx +++ b/src/components/article/edit-modal.tsx @@ -1,4 +1,4 @@ -import {Input, Modal, Space} from "antd"; +import {Modal} from "antd"; import ArticleGroup from "@/components/article/group.tsx"; import {useEffect, useState} from "react"; import {useSetState} from "ahooks"; @@ -157,7 +157,7 @@ export default function ArticleEditModal(props: Props) { {state.error &&
{state.error}
}
-
+
{props.type == 'news' && props.id ? : null} diff --git a/src/pages/live/index.tsx b/src/pages/live/index.tsx index 91fc145..c598cef 100644 --- a/src/pages/live/index.tsx +++ b/src/pages/live/index.tsx @@ -232,8 +232,8 @@ export default function LiveIndex() {
- 当前{state.activeIndex == -1 ? '暂未播放' : `播放到 ${state.activeIndex + 1} 条`} - 共 {videoData.length} 条 + {/*视频正在播放{state.activeIndex == -1 ? '' : `到 ${state.activeIndex + 1} 条`}*/} + 当前播放列表共 {videoData.length} 条
diff --git a/src/pages/news/edit.tsx b/src/pages/news/edit.tsx index 72b9d95..f056458 100644 --- a/src/pages/news/edit.tsx +++ b/src/pages/news/edit.tsx @@ -10,7 +10,7 @@ import ButtonPush2Video from "@/pages/news/components/button-push2video.tsx"; import styles from './components/style.module.scss' import InfiniteScroller, {InfiniteScrollerRef} from "@/components/scoller/infinite-scroller.tsx"; -import {IconDelete, IconWarningCircle} from "@/components/icons"; +import {IconDelete, IconEdit, IconWarningCircle} from "@/components/icons"; import {clsx} from "clsx"; import ButtonToTop from "@/components/scoller/button-to-top.tsx"; import ButtonDeleteBatch from "@/pages/news/components/button-delete-batch.tsx"; @@ -135,7 +135,7 @@ export default function NewEdit() { className="text-sm">{formatTime(item.publish_time, 'YYYY-MM-DD HH:mm')}
- {/**/} + setEditId(item.id)}>
{ setEditId(-1) if (saved) refresh()