Compare commits
3 Commits
3b1860e5af
...
a84770b4c3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a84770b4c3 | ||
|
|
7033502a01 | ||
|
|
756832f300 |
@@ -310,7 +310,7 @@ const initUserGameInfos = async (refresh_official, refresh_cap_scan) => {
|
|||||||
const handleLoginSuccess = async () => {
|
const handleLoginSuccess = async () => {
|
||||||
console.log("已登录")
|
console.log("已登录")
|
||||||
loginShow.value = false
|
loginShow.value = false
|
||||||
console.log(111)
|
|
||||||
await initUserGameInfos(true, true)
|
await initUserGameInfos(true, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -338,9 +338,7 @@ globalToastEvent.on(ToastType.SHOW_LOTTERY, () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
watch(() => lotteryShow.value, async (newVal) => {
|
watch(() => lotteryShow.value, async (newVal) => {
|
||||||
if (isLogin()) {
|
initUserGameInfos(true, true);
|
||||||
initUserGameInfos(true, true)
|
|
||||||
}
|
|
||||||
}, { immediate: true })
|
}, { immediate: true })
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -140,8 +140,6 @@ export const Request = async (url, data, type, noloading, noerror) => {
|
|||||||
} else {
|
} else {
|
||||||
Storage.clear()
|
Storage.clear()
|
||||||
weui.alert("错误的请求")
|
weui.alert("错误的请求")
|
||||||
window.location.reload()
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -193,7 +191,7 @@ export const Request = async (url, data, type, noloading, noerror) => {
|
|||||||
} else if (response.status == 401) {
|
} else if (response.status == 401) {
|
||||||
Storage.clear()
|
Storage.clear()
|
||||||
weui.alert("错误的请求")
|
weui.alert("错误的请求")
|
||||||
window.location.reload()
|
// window.location.reload()
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if (!noerror) {
|
if (!noerror) {
|
||||||
@@ -226,7 +224,6 @@ export const RequestImg = async (url, data, type, noloading, noerror) => {
|
|||||||
} else {
|
} else {
|
||||||
Storage.clear()
|
Storage.clear()
|
||||||
weui.alert("错误的请求")
|
weui.alert("错误的请求")
|
||||||
window.location.reload()
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -279,7 +276,7 @@ export const RequestImg = async (url, data, type, noloading, noerror) => {
|
|||||||
} else if (response.status == 401) {
|
} else if (response.status == 401) {
|
||||||
Storage.clear()
|
Storage.clear()
|
||||||
weui.alert("错误的请求")
|
weui.alert("错误的请求")
|
||||||
window.location.reload()
|
// window.location.reload()
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if (!noerror) {
|
if (!noerror) {
|
||||||
|
|||||||
Reference in New Issue
Block a user