wjx 4 天之前
父节点
当前提交
7ab3b9980f
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/pages/launchSystemV3/tencentAdPutIn/create/Dynamic/newDynamic.tsx

+ 3 - 3
src/pages/launchSystemV3/tencentAdPutIn/create/Dynamic/newDynamic.tsx

@@ -65,9 +65,6 @@ const NewDynamic: React.FC<Props> = ({ putInType, value: newValue, visible, onCl
                 wechatSceneSpecPosition: sceneSpec?.wechatPosition || [],
                 taskType: putInType
             }
-            if (siteSet?.length > 0) {
-                params.siteSet = (siteSet as any).filter((item: string) => item !== 'SITE_SET_SEARCH_SCENE')
-            }
             if (putInType === 'GAME') {
                 params.marketingSubGoal = marketingSubGoal
             }
@@ -181,6 +178,9 @@ const NewDynamic: React.FC<Props> = ({ putInType, value: newValue, visible, onCl
                 params.automaticSiteEnabled = automaticSiteEnabled
             } else {
                 params.siteSet = siteSet
+                if (siteSet?.length > 0) {
+                    params.siteSet = (siteSet as any).filter((item: string) => item !== 'SITE_SET_SEARCH_SCENE')
+                }
             }
             params.taskType = putInType
             if (putInType === 'GAME') {