style(抽奖活动页): 修复跳转没权限的问题
This commit is contained in:
parent
279aecef66
commit
b6ce010552
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user