irc_web/.svn/pristine/5b/5b215c57978d9d73aae06335511...

18 lines
358 B
Plaintext

<script>
import store from '@/store'
export default {
created() {
const { params, query } = this.$route
const { path } = params
if (query.token) {
store.dispatch('user/setToken', query.token)
}
this.$router.replace({ path: '/' + path, query })
},
render: function(h) {
return h() // avoid warning message
}
}
</script>