实现详细页面公告自动换行

This commit is contained in:
WindowBird 2025-08-27 09:04:44 +08:00
parent eeaa516065
commit 7bc48c1328

View File

@ -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 {