实现详细页面公告自动换行
This commit is contained in:
parent
eeaa516065
commit
7bc48c1328
|
|
@ -20,7 +20,7 @@ const announcementDetail = ref({
|
||||||
id: '',
|
id: '',
|
||||||
title: '',
|
title: '',
|
||||||
content: '',
|
content: '',
|
||||||
createTime: ''
|
createTime: '',
|
||||||
})
|
})
|
||||||
|
|
||||||
// 获取页面参数
|
// 获取页面参数
|
||||||
|
|
@ -33,7 +33,7 @@ const getPageParams = () => {
|
||||||
id: options.id || '',
|
id: options.id || '',
|
||||||
title: decodeURIComponent(options.title || ''),
|
title: decodeURIComponent(options.title || ''),
|
||||||
content: decodeURIComponent(options.content || ''),
|
content: decodeURIComponent(options.content || ''),
|
||||||
createTime: decodeURIComponent(options.createTime || '')
|
createTime: decodeURIComponent(options.createTime || ''),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -63,6 +63,7 @@ onMounted(() => {
|
||||||
color: #333;
|
color: #333;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
|
word-break: break-all; /* 强制换行(包括长单词) */
|
||||||
}
|
}
|
||||||
|
|
||||||
.meta {
|
.meta {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user