Skip to content

Let's use AI to Earn!

选择报错

daoyian3f6ad00fc540
diff --git a/src/views/replyother/replyother.tsx b/src/views/replyother/replyother.tsx
index a8ffe252..6b2f7cbd 100644
--- a/src/views/replyother/replyother.tsx
+++ b/src/views/replyother/replyother.tsx
@@ -786,7 +786,13 @@ export default function Page() {
<Button
type="primary"
icon={<DownOutlined />}
- onClick={() => setTaskModalVisible(true)}
+ onClick={() =>{
+ if (selectedPosts.length === 0) {
+ message.error('请选择作品');
+ return;
+ }
+ setTaskModalVisible(true)
+ }}
size="large"
>
下发任务