优化
This commit is contained in:
@@ -310,7 +310,7 @@ const initUserGameInfos = async (refresh_official, refresh_cap_scan) => {
|
||||
const handleLoginSuccess = async () => {
|
||||
console.log("已登录")
|
||||
loginShow.value = false
|
||||
|
||||
console.log(111)
|
||||
await initUserGameInfos(true, true)
|
||||
}
|
||||
|
||||
@@ -338,7 +338,9 @@ globalToastEvent.on(ToastType.SHOW_LOTTERY, () => {
|
||||
})
|
||||
|
||||
watch(() => lotteryShow.value, async (newVal) => {
|
||||
initUserGameInfos(true, true);
|
||||
if (newVal) {
|
||||
initUserGameInfos(true, true)
|
||||
}
|
||||
}, { immediate: true })
|
||||
|
||||
</script>
|
||||
|
||||
@@ -123,9 +123,9 @@ const openQiwei = (e) => {
|
||||
const openHaibao = async (e) => {
|
||||
const target = e.currentTarget
|
||||
// TODO 首页分享增加一次合成次数
|
||||
// if(!globalStore.first_share_today){
|
||||
// const result = await Request('face/share',{mergeId:xxx})
|
||||
// }
|
||||
if (!globalStore.first_share_today) {
|
||||
await Request('face/share', { mergeId: mergeId })
|
||||
}
|
||||
if (target.classList.contains("has")) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user