轮播图历史数据兼容

master
于肖磊 2024-12-13 17:20:44 +08:00
parent 905d3944b3
commit 82f73ff7de
2 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@
if (!this.propIsCommon) {
return '';
}
if (!isEmpty(form.carousel_list[actived_index].style.background_img)) {
if (!isEmpty(form.carousel_list[actived_index]?.style?.background_img)) {
return background_computer(form.carousel_list[actived_index].style);
}
return '';

View File

@ -170,7 +170,7 @@
return '';
},
get_swiper_bg_img_style(form, actived_index) {
if (!isEmpty(form.carousel_list[actived_index].style.background_img)) {
if (!isEmpty(form.carousel_list[actived_index]?.style?.background_img)) {
return background_computer(form.carousel_list[actived_index].style);
}
return '';