feat(排行榜): 添加首选榜单的功能

This commit is contained in:
hzj 2025-10-13 11:24:11 +08:00
parent 6a8c10012c
commit 66de070e54

View File

@ -273,6 +273,8 @@ import { isInApp, closePage } from '@/utils/appBridge.js'
import { computed, onMounted, ref, watch, watchEffect } from 'vue'
import TopUser from '@/components/Ranking/topUser.vue'
import { getWealthRanking, getCharmRanking, getRoomRanking, getMyRanking } from '@/api/ranking'
import { useRoute } from 'vue-router'
const route = useRoute()
//vite
const imageModules = import.meta.glob('@/assets/images/Ranking/*.{png,jpg,svg}', { eager: true })
@ -285,7 +287,7 @@ const images = Object.fromEntries(
)
const isInAppEnvironment = ref(false) // APP
const rankingType = ref('Wealth') //
const rankingType = ref(route.query.first || 'Wealth') //
const selectedTimeTab = ref('Hourly') //
//