auth.vue 663 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <div>1111</div>
  3. </template>
  4. <script setup>
  5. import { onMounted, ref } from 'vue'
  6. import { useAppStore } from '~src/store'
  7. import { useRoute, useRouter } from 'vue-router'
  8. import { getObjVal } from 'js-fast-way'
  9. import { loginByToken } from '~api/user'
  10. //初始变量
  11. const router = useRouter()
  12. const useRoutes = useRoute()
  13. const useAppState = useAppStore()
  14. //先清理下缓存
  15. useAppState.clearStoreData()
  16. //变量
  17. const loading = ref(true)
  18. const isErrorShow = ref(false)
  19. //渲染完成
  20. onMounted(() => {
  21. const { token, account, timestamp, timeInterval, moduleCode } = useRoutes?.query
  22. })
  23. </script>
  24. <style lang="scss" scoped>
  25. </style>