diff --git a/src/api/all/propertyMarketing.ts b/src/api/all/propertyMarketing.ts index 6df2215..2a5ae02 100644 --- a/src/api/all/propertyMarketing.ts +++ b/src/api/all/propertyMarketing.ts @@ -196,7 +196,7 @@ export const getPlacementAccountsDetail = (id: string) => { // 投放账号-授权 export const putPlacementAccountsAuthorized = (params = {}) => { const { id, ...rest } = params as { id: string; [key: string]: any }; - return Http.put(`/v1/placement-accounts/${id}/authorized`, rest); + return Http.put(`/v1/placement-accounts/${id}/authorize`, rest); }; // 投放账号-获取模板地址 @@ -206,7 +206,7 @@ export const getPlacementAccountsTemplateUrl = (params = {}) => { // 投放账号-查询授权状态 export const getPlacementAccountsAuthorizedStatus = (id: string) => { - return Http.get(`/v1/placement-accounts/${id}/authorized-status`); + return Http.get(`/v1/placement-accounts/${id}/status`); }; // 投放账户运营人员分组-列表 diff --git a/src/views/property-marketing/put-account/account-manage/components/authorized-account-modal/index.vue b/src/views/property-marketing/put-account/account-manage/components/authorized-account-modal/index.vue index 7d31ef7..ac31b72 100644 --- a/src/views/property-marketing/put-account/account-manage/components/authorized-account-modal/index.vue +++ b/src/views/property-marketing/put-account/account-manage/components/authorized-account-modal/index.vue @@ -115,8 +115,8 @@ const open = (accountId, last_synced_at = null) => { }; const close = () => { - formRef.value.resetFields(); - formRef.value.clearValidate(); + formRef.value?.resetFields(); + formRef.value?.clearValidate(); isLoading.value = false; isCompleted.value = false;