a1300399510@qq.com 提交于 2023/04/06 -12:20:01
This commit is contained in:
@@ -109,17 +109,24 @@ export default {
|
||||
getSearchResult() {
|
||||
if (this.searchResultState) return
|
||||
this.searchResultState = true
|
||||
let kw = this.kw
|
||||
this.$http.post("/api/search", {
|
||||
keyword: this.kw,
|
||||
keyword: kw,
|
||||
page: this.page,
|
||||
limit: this.limit
|
||||
}).then(res => {
|
||||
let data = res.data
|
||||
|
||||
console.log(data.data);
|
||||
// console.log(data.data);
|
||||
// console.log(kw);
|
||||
// data.data.forEach(el => {
|
||||
// console.log(el.subject);
|
||||
// })
|
||||
|
||||
this.list = data.data
|
||||
this.count = data.count
|
||||
this.limit = data.limit
|
||||
|
||||
document.documentElement.scrollTop = 0;
|
||||
document.body.scrollTop = 0;
|
||||
this.searchResultState = false
|
||||
@@ -236,6 +243,10 @@ export default {
|
||||
font-size: 0.37333rem;
|
||||
line-height: 0.65rem;
|
||||
display: inline;
|
||||
|
||||
/deep/ em {
|
||||
color: #F95D5D;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user