From 645695d4879b9122a5d99ed392ab73998c0b34d1 Mon Sep 17 00:00:00 2001 From: "jmosrael@gmail.com" Date: Sun, 5 May 2024 16:12:25 -0700 Subject: [PATCH] quick format --- frontend/src/vues/CharacterList.vue | 13 +++++++++---- frontend/src/vues/GameList.vue | 21 +++++++++++++-------- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/frontend/src/vues/CharacterList.vue b/frontend/src/vues/CharacterList.vue index e89567e..5d51210 100644 --- a/frontend/src/vues/CharacterList.vue +++ b/frontend/src/vues/CharacterList.vue @@ -26,7 +26,12 @@ - + @@ -69,9 +74,9 @@ function nextPage() { loadData() } -function setPage(targetPage:number) { - this.page=targetPage - 1 - loadData() +function setPage(targetPage: number) { + this.page = targetPage - 1 + loadData() } onMounted(async () => { diff --git a/frontend/src/vues/GameList.vue b/frontend/src/vues/GameList.vue index 3d543c8..37889f3 100644 --- a/frontend/src/vues/GameList.vue +++ b/frontend/src/vues/GameList.vue @@ -19,7 +19,12 @@ - + @@ -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 () => {