修改搜索中心细节问题

This commit is contained in:
qq787203167
2022-08-22 09:56:17 +08:00
parent fd76418d50
commit bd40e1b6e8
8 changed files with 58 additions and 12 deletions
@@ -220,7 +220,9 @@
return words.replace(/\s/g, '') //这里是去除空格
},
getParagraphInfoList() {
let queryParamOne = Object.assign(this.queryParam, this.queryParamOne)
let queryParamIndex = JSON.parse(JSON.stringify(this.queryParam))
let queryParamAdmin = JSON.parse(JSON.stringify(this.queryParamOne))
let queryParamOne = Object.assign(queryParamIndex, queryParamAdmin)
let queryParam = JSON.parse(JSON.stringify(queryParamOne))
Object.keys(queryParam).forEach(val => {
if (queryParam[val] instanceof Array) {
@@ -238,6 +240,11 @@
postAction(this.url.getParagraphInfoList, query).then((res) => {
if (res.success) {
this.conList = res.result.records
if (this.conList && this.conList.length > 0) {
this.conList.forEach(val => {
val.content = val.content.replace(/<img .*?>/g, '')
})
}
this.total = res.result.total
this.loading = false
} else {
@@ -482,4 +489,8 @@
overflow: hidden;
text-overflow: ellipsis;
}
::v-deep p{
margin: 0;
padding: 0;
}
</style>