Commit 00d487d0 by 陆志强

feat: 优化postinfo时机

parent a8fcca92
...@@ -5,7 +5,9 @@ export default function({token, onFinished} = {token: ''}) { ...@@ -5,7 +5,9 @@ export default function({token, onFinished} = {token: ''}) {
const { id } = this.$route.params const { id } = this.$route.params
token && Cookie.set('token', token, { expires: 10 }); token && Cookie.set('token', token, { expires: 10 });
this.$store.dispatch('users/getUerInfo', { uin }) this.$store.dispatch('users/getUerInfo', { uin })
this.$store.dispatch('users/postInfo', { id }) setTimeout(() => {
this.$store.dispatch('users/postInfo', { id })
}, 1000)
onFinished && onFinished() onFinished && onFinished()
return this return this
} }
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 sign in to comment