Explorar el Código

'1704-300911'

zory hace 10 horas
padre
commit
b8f15fb6ef
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      pages/index/index.vue

+ 5 - 1
pages/index/index.vue

@@ -144,7 +144,11 @@ export default {
 				}
 				if (res.data.rows.length > 0) {
 					app.goodsParam.page++;
-					app.goodsParam.isMore = true;
+					if (res.data.total <= res.data.pageSize) {
+						app.goodsParam.isMore = false;
+					} else {
+						app.goodsParam.isMore = true;
+					}
 				} else {
 					app.goodsParam.isMore = false;
 				}