瀏覽代碼

✨ 效率工具修改

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 {