style(抽奖活动页): 修复跳转没权限的问题

This commit is contained in:
hzj 2025-10-24 20:56:48 +08:00
parent 279aecef66
commit b6ce010552

View File

@ -856,6 +856,7 @@ import {
exchangeCoin, //
} from '@/api/lottery'
import Barrage from '@/components/Lottery/Barrage.vue'
import { setUserInfo } from '@/utils/userStore.js'
const router = useRouter()
@ -1202,6 +1203,9 @@ const getUserInfo = async () => {
if (Object.keys(userInfo.value).length === 0) {
const resUserInfo = await getMemberProfile()
if (resUserInfo.status && resUserInfo.body) {
//
console.debug('✅ User info cached successfully')
setUserInfo(response.body, null)
if (ranking.value.length == 0) {
userInfo.value = resUserInfo.body
} else {