<template>
  <div class='full-height'>
    <el-button @click='push'>确定</el-button>
  </div>
</template>

<script>
import useCounterStore from '../../store/user.js'
import tokenStore from '../../store/token.js'
import { setToken } from '../../utils/auth.js'
export default {
  setup () {
    const store = useCounterStore()
    const token = tokenStore()
    return { store, token }
  },
  created () {
    console.log(this.store.info.name)
    console.log(this.token.value)
    setToken('asfddas129rq34-rda')
  },
  methods: {
    push () {
      this.$router.push({ path: '/setting', query: { id: 12, type: 'test' } })
    }
  }
}
</script>

<style scoped>

</style>
