修改文本标题的显示

v1.0.0
于肖磊 2024-09-09 16:45:52 +08:00
parent 99b974ab87
commit d02e7d35c7
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ const title_style = computed(() => {
});
//
const title_center = computed(() => {
return form.value.is_title_center ? 'jc-c' : '';
return form.value.is_title_center == '1' ? 'jc-c' : '';
});
//
const keyword_style = computed(() => {

View File

@ -11,7 +11,7 @@ interface defaultSearch {
content: {
title: string;
title_link: object;
is_title_center: number;
is_title_center: string;
keyword_show: string;
keyword_list: carousel_list[];
right_show: string;
@ -33,7 +33,7 @@ const defaultSearch: defaultSearch = {
content: {
title: '',
title_link: {},
is_title_center: 0,
is_title_center: '0',
keyword_show: '1',
right_show: '1',
right_title: '更多',