File tree 3 files changed +5
-8
lines changed
3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ class ArticleDao {
146
146
}
147
147
try {
148
148
const article = await Article . scope ( 'iv' ) . findAndCountAll ( {
149
- // limit: page_size, //每页10条
149
+ limit : page_size , //每页10条
150
150
offset : ( page - 1 ) * page_size ,
151
151
where : filter ,
152
152
order : [
@@ -170,8 +170,6 @@ class ArticleDao {
170
170
rows = dataAndAdmin
171
171
}
172
172
173
- console . log ( rows )
174
- console . log ( Array . isArray ( rows ) && rows . length > 0 )
175
173
if ( Array . isArray ( rows ) && rows . length > 0 ) {
176
174
rows . sort ( ( a , b ) => b . sort_order - a . sort_order )
177
175
}
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ class CategoryDao {
124
124
try {
125
125
const category = await Category . scope ( 'bh' ) . findAndCountAll ( {
126
126
where : params ,
127
- // limit: page_size, //每页10条
127
+ limit : page_size , //每页10条
128
128
offset : ( page - 1 ) * page_size ,
129
129
order : [
130
130
[ 'created_at' , 'DESC' ]
Original file line number Diff line number Diff line change 30
30
<a v-if =" isClear" href =" /" >清空搜索条件</a >
31
31
</div >
32
32
33
- <div v-if =" isLoad" class =" more" @click =" loadMore" >
33
+ <div v-if =" isLoad" class =" response-wrap more" @click =" loadMore" >
34
34
<div class =" more-text" >点击加载更多</div >
35
35
<div class =" more-arrow" >
36
36
<img src =" https://cdn.boblog.com/arrow.png" alt =" " />
@@ -126,7 +126,7 @@ export default {
126
126
})
127
127
if (! err) {
128
128
this .categoryId = id
129
- this .article .push (... res .data .data )
129
+ this .article .data . push (... res . data .data .data )
130
130
this .isLoad = res .data .data .meta .total_pages > this .page
131
131
}
132
132
},
@@ -204,8 +204,7 @@ export default {
204
204
205
205
.more {
206
206
cursor : pointer ;
207
- width : 1280px ;
208
- margin : 0 auto ;
207
+ padding : 32px 0 ;
209
208
display : flex ;
210
209
align-items : center ;
211
210
justify-content : center ;
You can’t perform that action at this time.
0 commit comments