Commit ede08ef3 authored by liwei's avatar liwei

修改了bug

parent b1e37d5b
......@@ -144,7 +144,7 @@
<div style="font-size: 15px;padding-left: 20px;padding-bottom: 20px;padding-top: 10px" class="content">{{ form.content }}</div>
</el-col>
<el-row :gutter="20">
<el-col v-for="(imagePath, index) in form.path" :key="index" :span="7">
<el-col v-for="(imagePath, index) in form.url" :key="index" :span="7">
<div style="padding-left: 20px;padding-bottom: 20px">
<img :src="imagePath" alt="Avatar" class="avatar">
</div>
......@@ -159,11 +159,11 @@
</el-row>
<div class="commentsSection">
<h3>评论</h3>
<ul v-if="form.comments" class="commentTree">
<li v-for="(comment, index) in form.comments" :key="index" class="commentItem">
<ul v-if="form.articleCommentVOList" class="commentTree">
<li v-for="(comment, index) in form.articleCommentVOList" :key="index" class="commentItem">
<div style="display: flex; justify-content: space-between; align-items: center;" class="commentHeader">
<div style="display: flex; align-items: center;padding-bottom: 10px">
<img :src="comment.path" alt="Avatar" class="avatar">
<img :src="comment.avatarUrl" alt="Avatar" class="avatar">
<div style="padding-left: 10px;">
<strong>{{ comment.memCode }}:</strong>
<span style="padding-left: 10px">{{ comment.content }}</span>
......@@ -175,7 +175,7 @@
<li v-for="(reply, replyIndex) in comment.children" :key="replyIndex" class="replyItem">
<div style="display: flex; justify-content: space-between; align-items: center;" class="commentHeader">
<div style="display: flex; align-items: center;">
<img :src="reply.path" alt="Avatar" class="avatar">
<img :src="reply.avatarUrl" alt="Avatar" class="avatar">
<div style="padding-left: 10px;">
<strong>{{ reply.memCode }}:</strong>
<span style="padding-left: 10px">{{ reply.content }}</span>
......@@ -361,6 +361,10 @@ export default {
const id = row.businessId
getOpmArticle(id).then(response => {
this.form = response.data
// 处理图片url 将url按逗号分隔成数组
if (this.form.url != null && this.form.url !== '') {
this.form.url = this.form.url.split(',')
}
this.title = this.form.memCode
this.open = true
this.isEdit = false
......@@ -373,6 +377,10 @@ export default {
const id = row.businessId
getOpmArticle(id).then(response => {
this.form = response.data
// 处理图片url 将url按逗号分隔成数组
if (this.form.url != null && this.form.url !== '') {
this.form.url = this.form.url.split(',')
}
this.title = this.form.memCode
this.open = true
this.isEdit = true
......
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