改进聚合搜索的搜索结果排序

This commit is contained in:
lyswhut
2020-06-25 19:37:54 +08:00
parent 0c3899840b
commit 48cfebd5ae
4 changed files with 91 additions and 7 deletions
@@ -56,6 +56,10 @@ export default {
type: Number,
default: 7,
},
maxPage: {
type: Number,
default: null,
},
},
data() {
return {
@@ -65,7 +69,7 @@ export default {
computed: {
...mapGetters(['userInfo']),
allPage() {
return Math.ceil(this.count / this.limit) || 1
return this.maxPage == null ? Math.ceil(this.count / this.limit) || 1 : this.maxPage
},
pageEvg() {
return Math.floor(this.btnLength / 2)