diff --git a/src/components/model-blog-tabs/model-blog-tabs-content.vue b/src/components/model-blog-tabs/model-blog-tabs-content.vue index f70f215f..c57d2569 100644 --- a/src/components/model-blog-tabs/model-blog-tabs-content.vue +++ b/src/components/model-blog-tabs/model-blog-tabs-content.vue @@ -227,8 +227,8 @@ const blog_theme_change = (val: any) => { const list = base_list.blog_theme_list.filter(item => item.value == val); if (list.length > 0) { // emits('theme_change', list[0].width, list[0].height); - styles.value.content_img_width = list[0].width; - styles.value.content_img_height = list[0].height; + styles.content_img_width = list[0].width; + styles.content_img_height = list[0].height; } }; diff --git a/src/config/const/blog-list.ts b/src/config/const/blog-list.ts index d0b536d9..72270b40 100644 --- a/src/config/const/blog-list.ts +++ b/src/config/const/blog-list.ts @@ -73,8 +73,8 @@ interface DefaultBlogList { blog_spacing: number; content_spacing: number; blog_height: number; - content_img_width: number | undefined; - content_img_height: number | undefined; + content_img_width: number; + content_img_height: number; interval_time: number; //滚动时间 is_roll: number; rolling_fashion: string; diff --git a/src/config/const/blog-tabs.ts b/src/config/const/blog-tabs.ts index a7719038..c0064f94 100644 --- a/src/config/const/blog-tabs.ts +++ b/src/config/const/blog-tabs.ts @@ -127,8 +127,8 @@ interface DefaultBlogTabs { blog_spacing: number; content_spacing: number; blog_height: number; - content_img_width: number | undefined; - content_img_height: number | undefined; + content_img_width: number; + content_img_height: number; interval_time: number; //滚动时间 is_roll: number; rolling_fashion: string;