mirror of
https://github.com/BlossomiShymae/clean-cuts.git
synced 2025-12-06 10:10:47 +01:00
Bandaid fix TFT items for now
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
<script setup lang="ts">
|
||||
const { client } = useClient();
|
||||
const { currentLocale } = useLocale();
|
||||
const getTftItems = async() => await client.tftItems.listAsync({ locale: currentLocale.value, version: "latest"});
|
||||
|
||||
const tftItems = ref(await getTftItems());
|
||||
watch(currentLocale, async() => {
|
||||
tftItems.value = await getTftItems();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="d-flex flex-column gap-2">
|
||||
<h1>TFT Items</h1>
|
||||
|
||||
<div class="overflow-hidden rounded border border-light border-opacity-25 p-4">
|
||||
<div class="overflow-hidden rounded border border-light border-opacity-25 p-4 app-background">
|
||||
<table class="sortable table table-borderless">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -31,18 +40,4 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import useClient from '~/composables/useClient';
|
||||
import useLocale from '~/composables/useLocale';
|
||||
|
||||
const { client } = useClient();
|
||||
const { currentLocale } = useLocale();
|
||||
const getTftItems = async() => await client.tftItems.listAsync({ locale: currentLocale.value, version: "latest"});
|
||||
|
||||
const tftItems = ref(await getTftItems());
|
||||
watch(currentLocale, async() => {
|
||||
tftItems.value = await getTftItems();
|
||||
});
|
||||
</script>
|
||||
</template>
|
||||
Reference in New Issue
Block a user