Skip to content

Let's use AI to Earn!

参乎上

daoyian8b816491189a
diff --git a/src/components/PublishDialog/compoents/PlatParamsSetting/plats/FacebookParams.tsx b/src/components/PublishDialog/compoents/PlatParamsSetting/plats/FacebookParams.tsx
index 97551f74..4d591125 100644
--- a/src/components/PublishDialog/compoents/PlatParamsSetting/plats/FacebookParams.tsx
+++ b/src/components/PublishDialog/compoents/PlatParamsSetting/plats/FacebookParams.tsx
@@ -43,13 +43,13 @@ const FacebookParams = memo(
<Select
style={{ width: "100%" }}
options={facebookPages}
- value={pubItem.params.option.facebook?.pageId}
+ value={pubItem.params.option.facebook?.page_id}
onChange={(value) => {
const option = pubItem.params.option;
if (!option.facebook) {
option.facebook = {};
}
- option.facebook.pageId = value;
+ option.facebook.page_id = value;
setOnePubParams(
{
option,
diff --git a/src/components/PublishDialog/hooks/usePubParamsVerify.tsx b/src/components/PublishDialog/hooks/usePubParamsVerify.tsx
index 7c8ed3f7..f578817b 100644
--- a/src/components/PublishDialog/hooks/usePubParamsVerify.tsx
+++ b/src/components/PublishDialog/hooks/usePubParamsVerify.tsx
@@ -74,7 +74,7 @@ export default function usePubParamsVerify(data: PubItem[]) {
// Facebook的强制校验
if (v.account.type === PlatType.Facebook) {
- if (!v.params.option.facebook?.pageId) {
+ if (!v.params.option.facebook?.page_id) {
return setErrorMsg("您必须选择页面!");
}
}
diff --git a/src/components/PublishDialog/publishDialog.type.ts b/src/components/PublishDialog/publishDialog.type.ts
index 29555f38..b0d006c8 100644
--- a/src/components/PublishDialog/publishDialog.type.ts
+++ b/src/components/PublishDialog/publishDialog.type.ts
@@ -47,7 +47,7 @@ export interface IPlatOption {
};
facebook?: {
// 页面ID,由获取Facebook页面信息接口得到
- pageId?: string;
+ page_id?: string;
};
}
diff --git a/src/components/PublishDialog/usePublishDialog.ts b/src/components/PublishDialog/usePublishDialog.ts
index 107c9698..a3c065ed 100644
--- a/src/components/PublishDialog/usePublishDialog.ts
+++ b/src/components/PublishDialog/usePublishDialog.ts
@@ -42,7 +42,7 @@ const store: IPublishDialogStore = {
source: "",
},
facebook: {
- pageId: undefined,
+ page_id: undefined,
},
},
},