<template>
  <div class='full-height light-green-bg rounded-3xl min-h-4rem'>
    <el-button @click='push'>确定</el-button>
  </div>
</template>

<route>
  {
    path: '/',
    name: '首页',
  }
</route>

<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 () {
    setToken('asfddas129rq34-rda')
  },
  methods: {
    push () {
      this.$router.push({ path: '/setting', query: { id: 12, type: 'test' } })
    }
  }
}
</script>

<style scoped>

</style>
