|
@@ -87,7 +87,7 @@ export function handleAdBasic({
|
87
|
87
|
CopywriterRef,
|
88
|
88
|
LandPageRef,
|
89
|
89
|
targetRef,
|
90
|
|
- pageInfo
|
|
90
|
+ pageInfo,CreativeMaterial_clear
|
91
|
91
|
}: IHandleAdBasic) {
|
92
|
92
|
/**广告基础信息回调 */
|
93
|
93
|
const basicInfoClose = (obj) => {
|
|
@@ -96,8 +96,7 @@ export function handleAdBasic({
|
96
|
96
|
if (obj.params.automatic_site != basicInfoData.fillBack?.automatic_site || obj.params.site_ids != basicInfoData.fillBack?.site_ids) {
|
97
|
97
|
clearOriginalityInfo()
|
98
|
98
|
updateHaveContent(5, 0, false, true)
|
99
|
|
- CreativeMaterialRef.value?.clearAllEvent()
|
100
|
|
- updateHaveContent(6, 0, false, true)
|
|
99
|
+ CreativeMaterial_clear()
|
101
|
100
|
if (CopywriterRef.value) {
|
102
|
101
|
CopywriterRef.value[0]?.clearEvent()
|
103
|
102
|
}
|
|
@@ -119,8 +118,8 @@ export function handleAdBasic({
|
119
|
118
|
getAdPresets({ 'promoted_object_type': targetRef.value?.value }).then((res) => {
|
120
|
119
|
getButtonBasicOuter(res)
|
121
|
120
|
FillBackData({
|
122
|
|
- data: res,
|
123
|
|
- type: 'api',
|
|
121
|
+ data: res,
|
|
122
|
+ type: 'api',
|
124
|
123
|
cb: (data: { params: any, copywriting: [] }) => {
|
125
|
124
|
if (data.copywriting && Array.isArray(data.copywriting) && data.copywriting.length > 0) {
|
126
|
125
|
basicInfoData.copywriting = data.copywriting
|
|
@@ -217,4 +216,4 @@ export function handleAdBasic({
|
217
|
216
|
getCommonValue,
|
218
|
217
|
isCompleteEvent
|
219
|
218
|
}
|
220
|
|
-}
|
|
219
|
+}
|