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