perf: 优化排行榜页面

This commit is contained in:
橙子
2025-03-01 14:58:21 +08:00
parent 1552b00516
commit d7d4fd8a48
3 changed files with 322 additions and 69 deletions

View File

@@ -37,16 +37,10 @@
</template>
<script setup>
import useUserStore from "@/stores/user";
import { reactive, watch, onMounted, computed, ref } from "vue";
import { upload } from "@/apis/fileApi";
import useAuths from "@/hooks/useAuths";
import { reactive, watch, onMounted, ref } from "vue";
import UserInfoCard from "./UserInfoCard/index.vue";
import UserLimitTag from "./UserLimitTag.vue";
const { getToken } = useAuths();
const isHasToken = getToken();
//userInfo
//{icon,name,role,id},根据判断userInfo是否等于未定义来觉得是当前登录用户信息还是其他人信息
const props = defineProps([