Commit 193861a7 authored by 劳琪峰's avatar 劳琪峰

chore: 登录成功后重新初始化邀请组件并尝试助力

parent 47a63bf6
......@@ -89,13 +89,7 @@ async function tryAssist() {
}
}
watch(() => props.isLogin, async (newVal) => {
if (newVal) {
await updateInvitationInfo()
}
})
onMounted(async () => {
function initComponent() {
await updateInvitationInfo()
updateShareData({
......@@ -113,6 +107,16 @@ onMounted(async () => {
}
await tryAssist()
}
watch(() => props.isLogin, async (newVal) => {
if (newVal) {
initComponent()
}
})
onMounted(async () => {
initComponent()
})
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment