Commit 15502f1c by 陆志强

feat: 修复postinfo参数

parent 85cf4d95
......@@ -54,10 +54,10 @@ export default {
this.initLoginCenter()
Bus.$on('showLogin', this.toggleLogin)
const { uin } = this.$route.query
const { id } = this.$route.params
const { id } = this.$route.query
this.$store.dispatch('users/getUerInfo', { uin })
setTimeout(() => {
this.$store.dispatch('users/postInfo', { id })
this.$store.dispatch('users/postInfo', id)
}, 1000)
},
destroyed() {
......
......@@ -49,10 +49,10 @@ export default {
this.initLoginCenter()
Bus.$on('showLogin', this.toggleLogin)
const { uin } = this.$route.query
const { id } = this.$route.params
const { id } = this.$route.query
this.$store.dispatch('users/getUerInfo', { uin })
setTimeout(() => {
this.$store.dispatch('users/postInfo', { id })
this.$store.dispatch('users/postInfo', id)
}, 1000)
},
destroyed() {
......
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