更新登录UI

This commit is contained in:
kron
2025-06-12 00:24:14 +08:00
parent baadc7b182
commit dce1806f97
3 changed files with 122 additions and 56 deletions

View File

@@ -14,17 +14,17 @@ const battlePage = ref(1);
const battleList = ref([]);
const handleSelect = async (index) => {
if (index === 0) {
if (index === 0 && matchList.value.length === 0) {
const result = await getBattleListAPI(matchPage.value, 2);
matchList.value = result.list;
matchPage.value += 1;
}
if (index === 1) {
if (index === 1 && battleList.value.length === 0) {
// const result = await getBattleListAPI(battlePage.value, 1);
// battleList.value = result.list;
// battlePage.value += 1;
}
if (index === 2) {
if (index === 2 && practiseList.value.length === 0) {
const result = await getPractiseResultListAPI();
practiseList.value = result.list;
}