更新登录UI
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user