修改搜索中心细节问题
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user