소스 검색

✨ 效率工具修改

xinyan 7 달 전
부모
커밋
0c9f9d5277
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/views/efTools/automation/components/adActivityDialog.vue

+ 2 - 0
src/views/efTools/automation/components/adActivityDialog.vue

@@ -154,6 +154,7 @@ async function fetchAdCampaign() {
   try {
     loading.value = true;
     const cachedSelectedAds = [...selectedAds.value];
+    if (profile.value.profile_id && templateId.value){
     const resp = await getRelationCampaign({
       profileId: profile.value.profile_id,
       templateId: templateId.value,
@@ -167,6 +168,7 @@ async function fetchAdCampaign() {
     gridOptions.data = resp.data;
     total.value = resp.total;
     currentPage.value = resp.page;
+    }
   } catch (error) {
     ElMessage.error('请求广告活动数据失败');
   } finally {