|
@@ -29,8 +29,8 @@ const formSchema = [
|
|
|
required: true,
|
|
|
},
|
|
|
{
|
|
|
- field: 'apiAccessToken',
|
|
|
- label: 'API Access Token',
|
|
|
+ field: 'apiRefreshToken',
|
|
|
+ label: 'API Refresh Token',
|
|
|
component: 'Input',
|
|
|
},
|
|
|
{
|
|
@@ -57,8 +57,8 @@ async function handleSubmit() {
|
|
|
customerId: values.googleAdsAccount,
|
|
|
siteCode: values.siteCode,
|
|
|
};
|
|
|
- if (values.apiAccessToken) {
|
|
|
- params.refreshToken = values.apiAccessToken;
|
|
|
+ if (values.apiRefreshToken) {
|
|
|
+ params.refreshToken = values.apiRefreshToken;
|
|
|
}
|
|
|
await bindGoogleAdsAccount(params);
|
|
|
createMessage.success('Google Ads账号绑定成功');
|
|
@@ -84,7 +84,7 @@ const init = async (data: { record: Recordable }) => {
|
|
|
if (res) {
|
|
|
setFieldsValue({
|
|
|
googleAdsAccount: res.customerId,
|
|
|
- apiAccessToken: res.refreshToken,
|
|
|
+ apiRefreshToken: res.refreshToken,
|
|
|
siteCode: data.record.code,
|
|
|
});
|
|
|
}
|