Browse Source

Refresh token

wfansh 3 months ago
parent
commit
2463328562
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/views/adweb/site/components/GoogleAdsModal.vue

+ 5 - 5
src/views/adweb/site/components/GoogleAdsModal.vue

@@ -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,
       });
     }