<template>
  <router-view/>
</template>

<script>
import Cookie from 'js-cookie'
export default {
  name: 'App',
  created () {
    let { token, group_id } = this.$route.query
    if (token) {
      Cookie.set('group_id', group_id)
      Cookie.set('token', token)
      this.$router.replace({ query: { ...this.$route.query, token: undefined, group_id: undefined } })
    }
  }
}
</script>
<style lang="scss">
@import '@/common/scss/bl-flex.scss';
</style>