细节修改

This commit is contained in:
kron
2025-07-18 15:04:29 +08:00
parent 4f4178b75d
commit b09f68789e
8 changed files with 50 additions and 28 deletions

View File

@@ -1,6 +1,6 @@
<script setup>
import { ref, onMounted } from "vue";
import { onHide } from "@dcloudio/uni-app";
import { onShow, onHide } from "@dcloudio/uni-app";
import Container from "@/components/Container.vue";
import Avatar from "@/components/Avatar.vue";
import { getRankListAPI, isGamingAPI } from "@/apis";
@@ -37,7 +37,7 @@ const handleSelect = (index) => {
}
};
onMounted(async () => {
onShow(async () => {
const result = await getHomeData();
currentList.value = result.rank;
rankData.value = result;
@@ -137,9 +137,10 @@ const updateData = () => {
});
}
};
onHide(() => {
showSeasonList.value = false;
});
onShow,
() => {
showSeasonList.value = false;
};
</script>
<template>