fix(openapi-ts): first pass for replacing with openapi-ts

This commit is contained in:
2026-05-23 18:53:33 +02:00
parent 62a81e57ad
commit f1afb2096f
6 changed files with 40 additions and 37 deletions
+4 -5
View File
@@ -1,11 +1,10 @@
<script setup lang="ts">
import { ref, onMounted } from "vue";
import { apiService } from "./services/apiService";
import type { Market } from "./types";
import { polylanSubmitterApiGetUserInfo, marketApiListMarkets } from "./api";
import MarketCard from "./components/MarketCard.vue";
import UserBets from "./components/UserBets.vue";
const markets = ref<Market[]>([]);
const markets = ref<any[]>([]);
const loading = ref(true);
const userInfo = ref<any>(null);
@@ -19,13 +18,13 @@ const reloadPage = () => {
onMounted(async () => {
// Fetch user info
const userResponse = await apiService.getUserInfo();
const userResponse = await polylanSubmitterApiGetUserInfo();
if (userResponse.data) {
userInfo.value = userResponse.data;
}
// Fetch markets
const response = await apiService.getMarkets();
const response = await marketApiListMarkets();
if (response.data) {
markets.value = response.data;
}