wjx 2 年 前
コミット
ae11829148

+ 8 - 2
src/pages/launchSystemNew/launchManage/createAd/creativeCL/modal/index.tsx

@@ -280,11 +280,17 @@ function CreativePup(props: Props) {
     // 获取创意形式列表
     useEffect(() => {
         if (siteSet?.length > 0 && promotedObjectType) {
-            getAdcreativeTemplateList.run({
+            let siteSetLength = siteSet.length
+            let isChannes = siteSet.includes('SITE_SET_CHANNELS')
+            let params: any = {
                 siteSet,
                 promotedObjectType,
                 campaignType: 'CAMPAIGN_TYPE_NORMAL',
-            }).then(res => {
+            }
+            if (siteSetLength === 1 && isChannes) {
+                delete params.campaignType
+            }
+            getAdcreativeTemplateList.run(params).then(res => {
                 let newArr: any = []
                 let newData: any[] = []
                 // 过滤掉相同的和即将下线的