Files
drop-app/pages/store/index.vue
2024-10-20 20:55:37 +11:00

23 lines
589 B
Vue

<template>
<button class="w-full rounded-md p-4 bg-blue-600 text-white" @click="requestGameWrapper">
Load Data
</button>
</template>
<script setup lang="ts">
import { invoke } from "@tauri-apps/api/core";
async function requestGame() {
console.log("Requested game from FE");
await invoke("start_game_download", { gameId: "94b8ac10-a6fc-4a94-b519-e6df78018e26", gameVersion: "1.11.2", maxThreads: 4 });
}
function requestGameWrapper() {
console.log("Wrapper started");
requestGame()
.then(() => {})
.catch((e) => {
console.log(e);
})
}
</script>