细节修改
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user