删除日志信息

v1.4.0
于肖磊 2025-08-04 17:06:42 +08:00
parent a646b06e1f
commit 95f21aaf2f
3 changed files with 4 additions and 6 deletions

View File

@ -166,7 +166,6 @@ const swiper_bg_style = computed(() => {
//
const swiper_bg_img_style = computed(() => {
if (tabs_magic_type.value == 'carousel') {
console.log(tabs_magic_value.value);
const { carousel_img, style = {} } = tabs_magic_value.value.content?.carousel_list[actived_index.value] || {};
//
if (!isEmpty(carousel_img) && style?.background_type == 'carousel') {

View File

@ -527,7 +527,6 @@ onMounted(async () => {
const interval = setInterval(() => {
//
if (common_store.common.module_list.length > 0) {
console.log(common_store.common.module_list);
common_store.common.module_list.forEach((item, index) => {
if (index == 0) {
item.data.push({key: 'tabs-magic', name: '选项卡魔方'});

View File

@ -273,6 +273,7 @@ const save_formmat_form_data = (data: diy_data_item, close: boolean = false, is_
//
clone_form.tabs_data = clone_form.tabs_data.map((item: any) => {
if (['tabs-magic'].includes(item.key)) {
item.com_data.content.tabs_active_index = 0;
//
const all_type = ['hot_zone', 'custom', 'img_magic', 'goods_magic', 'goods_list', 'article_list', 'nav_group', 'video', 'carousel'];
//
@ -286,17 +287,16 @@ const save_formmat_form_data = (data: diy_data_item, close: boolean = false, is_
//
custom_data_processing(item1[item1.magic_type].content);
}
item = Object.keys(item1)
item1 = Object.keys(item1)
.filter(key => !all_type.filter((item2: string) => item2 !== item1.magic_type).includes(key))
.reduce((acc: Record<string, any>, key: string) => {
acc[key] = item1[key];
return acc;
}, {});
console.log(item);
});
//
item.home_data = new_data_list.length > 0 ? new_data_list[0] : null;
item.tabs_list = new_data_list.slice(1, new_data_list.length);
item.com_data.content.home_data = new_data_list.length > 0 ? new_data_list[0] : null;
item.com_data.content.tabs_list = new_data_list.slice(1, new_data_list.length);
}
return {
...item,