Skip to content

Let's use AI to Earn!

通知接受任务

bulaienaofutuojiesenzhange40f680ac2c7
diff --git a/src/components/PublishDialog/index.tsx b/src/components/PublishDialog/index.tsx
index 01e6154e..9bf8ae57 100644
--- a/src/components/PublishDialog/index.tsx
+++ b/src/components/PublishDialog/index.tsx
@@ -321,9 +321,7 @@ const PublishDialog = memo(
});
}
}
- console.log(draft);
- console.log(nextParams);
if (step === 1 && expandedPubItem) {
setOnePubParams(nextParams, expandedPubItem.account.id);
} else {
diff --git a/src/components/notification/NotificationPanel.tsx b/src/components/notification/NotificationPanel.tsx
index 01a3dada..40d4c98e 100644
--- a/src/components/notification/NotificationPanel.tsx
+++ b/src/components/notification/NotificationPanel.tsx
@@ -236,7 +236,7 @@ const NotificationPanel: React.FC<NotificationPanelProps> = ({ visible, onClose
// 接受任务
const handleAcceptTask = async (account?: SocialAccount) => {
if (!selectedTask) return;
-
+
// 显示进度弹窗
setTaskProgressVisible(true);
setTaskProgress({
@@ -1133,6 +1133,9 @@ const NotificationPanel: React.FC<NotificationPanelProps> = ({ visible, onClose
return null;
})()}
+ {
+
+ selectedTask.opportunityStatus == 'pending' && (
<Button
type="primary"
onClick={() => handleTaskAction(selectedTask)}
@@ -1140,6 +1143,8 @@ const NotificationPanel: React.FC<NotificationPanelProps> = ({ visible, onClose
>
{t('acceptTask')}
</Button>
+ )
+ }
</div>
)}
</div>