Commit 00214990 authored by 罗林杰's avatar 罗林杰

修改bug

parent 93f3b377
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
</view> </view>
</view> </view>
<view class="strs" v-if="userData.articleContent !== null"> <view class="strs" v-if="userData.articleContent !== null">
{{userData.articleContent}} {{userData.articleContent ? userData.articleContent : ''}}
</view> </view>
<view :class="['imgs',userData.articleImg.length == 2 ? 'twoTemp':'']" v-if="userData.articleImg !== null && userData.articleImg.length"> <view :class="['imgs',userData.articleImg.length == 2 ? 'twoTemp':'']" v-if="userData.articleImg !== null && userData.articleImg.length">
<image v-for="item in userData.articleImg" :src="item" <image v-for="item in userData.articleImg" :src="item"
...@@ -1133,6 +1133,9 @@ ...@@ -1133,6 +1133,9 @@
} }
.strs{ .strs{
padding: 30rpx 42rpx; padding: 30rpx 42rpx;
max-width: 700rpx;
word-wrap: break-word; // 允许长单词或URL地址换行到下一行
word-break: break-all; // 对于中文非常有用,允许任意字符间的断行
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment