This commit is contained in:
花有清香月有阴
2022-01-07 17:55:06 +08:00
parent 5379985236
commit b27c804832
2 changed files with 29 additions and 14 deletions

View File

@@ -95,6 +95,7 @@ export default {
},
},
onLoad(o) {
console.log(this.user)
this.moduleId = o.moduleId
this.listName = o.listName
@@ -125,12 +126,12 @@ export default {
if (res?.data) {
res.data.records.forEach((e) => {
// e.avatar = e.createUserName?.substring(0, 2) || '游客'
if(e.createUserName) {
e.avatar = e.createUserName.substring(e.createUserName.length, e.createUserName.length - 2)
}else {
e.avatar = '游客'
if (e.createUserName) {
e.avatar = e.createUserName.substring(e.createUserName.length, e.createUserName.length - 2)
} else {
e.avatar = '游客'
}
if (e.images) {
e.images = JSON.parse(e.images)
}
@@ -220,11 +221,11 @@ export default {
background: #f2f2f2;
::v-deep .AiCard {
border-radius: 0!important;
border-radius: 0 !important;
box-shadow: none;
.start {
border-radius: 0!important;
border-radius: 0 !important;
}
}