No se escribir
This commit is contained in:
@@ -12,7 +12,8 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
<button :disabled="!prevPage" @click.prevent="goToPrev">Previous</button>
|
<button :disabled="!prevPage" @click.prevent="goToPrev">Previous</button>
|
||||||
<button :disabled="! nexPage" @click.prevent="goToNext">Next</button>
|
{{ paginationCount }}
|
||||||
|
<button :disabled="!nextPage" @click.prevent="goToNext">Next</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -22,6 +23,7 @@ import axios from 'axios';
|
|||||||
|
|
||||||
const getUsers = (page, callback) => {
|
const getUsers = (page, callback) => {
|
||||||
const params = { page };
|
const params = { page };
|
||||||
|
|
||||||
axios
|
axios
|
||||||
.get('/api/users', { params })
|
.get('/api/users', { params })
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
|||||||
Reference in New Issue
Block a user