|
|
@@ -128,8 +128,8 @@ const CreativeConversionAssistant: React.FC<{ automaticSiteEnabled?: boolean, pu
|
|
|
|
|
|
/** 微信文字链 */
|
|
|
const textLinkContent = useMemo(() => {
|
|
|
- let textLink = creativeComponents?.text_link
|
|
|
- if (textLink && ![1707, 1708].includes(creativeTemplateId) && deliveryMethod === 'SMART' ? true : !automaticSiteEnabled) {
|
|
|
+ const textLink = creativeComponents?.text_link
|
|
|
+ if (textLink && ![1707, 1708].includes(creativeTemplateId) && (deliveryMethod === 'SMART' ? true : !automaticSiteEnabled)) {
|
|
|
let pageSpecPageType = pageSpec?.[0]?.pageType || 'PAGE_TYPE_WECHAT_CANVAS'
|
|
|
let textLinkRequired, linkNameEnumeration: { label: string, value: string }[] = [];
|
|
|
let linkNamePageType, linkNamePageTypeEnumeration: PULLIN.DataType[] = [];
|
|
|
@@ -195,7 +195,7 @@ const CreativeConversionAssistant: React.FC<{ automaticSiteEnabled?: boolean, pu
|
|
|
</Form.Item>
|
|
|
}
|
|
|
return null
|
|
|
- }, [creativeComponents?.text_link, pageSpec, textLinkShow, creativeTemplateId, automaticSiteEnabled, putInType])
|
|
|
+ }, [creativeComponents?.text_link, pageSpec, textLinkShow, creativeTemplateId, automaticSiteEnabled, putInType, deliveryMethod])
|
|
|
|
|
|
/** 行动按钮 */
|
|
|
const actionButtonContent = useMemo(() => {
|