Răsfoiți Sursa

✨ 效率工具修改

xinyan 7 luni în urmă
părinte
comite
0c9f9d5277

+ 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 {