quick format

This commit is contained in:
jmosrael@gmail.com
2024-05-05 16:12:25 -07:00
parent aab717da4d
commit 645695d487
2 changed files with 22 additions and 12 deletions

View File

@@ -19,7 +19,12 @@
</tr>
</tbody>
</v-table>
<v-pagination :length="pageCount" @prev="previousPage()" @next="nextPage()" @update:modelValue="setPage($event)"></v-pagination>
<v-pagination
:length="pageCount"
@prev="previousPage()"
@next="nextPage()"
@update:modelValue="setPage($event)"
></v-pagination>
</template>
<style></style>
@@ -33,10 +38,10 @@ const games = ref({})
const pageCount = ref({})
async function loadData() {
const response = await axios.post('/api/game', {
page: `${page}`,
count: '10',
orderBy: 'id'
const response = await axios.post('/api/game', {
page: `${page}`,
count: '10',
orderBy: 'id'
})
games.value = response.data.gameData
@@ -53,9 +58,9 @@ async function previousPage() {
loadData()
}
function setPage(targetPage:number) {
this.page=targetPage - 1
loadData()
function setPage(targetPage: number) {
this.page = targetPage - 1
loadData()
}
onMounted(async () => {