细节完善

This commit is contained in:
kron
2025-07-18 22:17:17 +08:00
parent 115e0cefbb
commit c8728786e6
12 changed files with 41 additions and 51 deletions

View File

@@ -8,12 +8,7 @@ import SModal from "@/components/SModal.vue";
import Signin from "@/components/Signin.vue";
import BubbleTip from "@/components/BubbleTip.vue";
import BackToGame from "@/components/BackToGame.vue";
import {
getAppConfig,
getHomeData,
getMyDevicesAPI,
getRankListAPI,
} from "@/apis";
import { getAppConfig, getHomeData, getMyDevicesAPI } from "@/apis";
import { topThreeColors } from "@/constants";
import useStore from "@/store";
import { storeToRefs } from "pinia";
@@ -64,9 +59,8 @@ onMounted(async () => {
const config = await getAppConfig();
updateConfig(config);
console.log("全局配置:", config);
const rankList = await getRankListAPI();
updateRank(rankList);
const result = await getHomeData();
updateRank(result);
console.log("首页数据:", result);
if (result.user) {
updateUser(result.user);