添加排行榜数据
This commit is contained in:
@@ -1,15 +1,19 @@
|
||||
<script setup>
|
||||
import { ref, onMounted } from "vue";
|
||||
import Avatar from "@/components/Avatar.vue";
|
||||
const isIos = ref(true);
|
||||
import { getRankListAPI } from "@/apis";
|
||||
|
||||
onMounted(() => {
|
||||
const isIos = ref(true);
|
||||
const selectedIndex = ref(0);
|
||||
const rankData = ref({});
|
||||
|
||||
onMounted(async () => {
|
||||
const deviceInfo = uni.getDeviceInfo();
|
||||
isIos.value = deviceInfo.osName === "ios";
|
||||
const rankList = await getRankListAPI();
|
||||
rankData.value = rankList;
|
||||
});
|
||||
|
||||
const selectedIndex = ref(0);
|
||||
|
||||
const handleSelect = (index) => {
|
||||
selectedIndex.value = index;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user