fix(openapi-ts): first pass for replacing with openapi-ts
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from "vue";
|
||||
import { apiService } from "./services/apiService";
|
||||
import type { Game } from "./types";
|
||||
import { gamesApiListGames } from "./api";
|
||||
|
||||
const games = ref<Game[]>([]);
|
||||
const games = ref<any[]>([]);
|
||||
const loading = ref(true);
|
||||
|
||||
const imageErrors = ref<Set<number>>(new Set());
|
||||
@@ -21,7 +20,7 @@ const navigate = (path: string) => {
|
||||
};
|
||||
|
||||
onMounted(async () => {
|
||||
const response = await apiService.getGames();
|
||||
const response = await gamesApiListGames();
|
||||
if (response.data) {
|
||||
games.value = response.data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user