headerRight.vue 885 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div class="header_right">
  3. <div>
  4. <img src="" alt="">
  5. <router-link to="/admin"><span>管理后台</span></router-link>
  6. </div>
  7. <div>
  8. <img src="" alt="">
  9. <span @click="linkLogin()">用户名称</span>
  10. </div>
  11. </div>
  12. </template>
  13. <script setup>
  14. import { ref } from "vue"
  15. const linkLogin = ()=>{
  16. console.log('11111')
  17. window.location.href = `http://szedutest.changyan.cn/thirdauth/oauth2/authorize?service=initService&scope=all&response_type=code&app_id=94c720f0634b4bad890dc9223de01166&redirect_uri=https://cloud.cocorobo.cn/testapi`
  18. }
  19. </script>
  20. <style scoped lang="scss">
  21. .header_right {
  22. display: flex;
  23. div {
  24. img {
  25. vertical-align: middle;
  26. }
  27. span {
  28. padding: 10px;
  29. line-height: 60px;
  30. }
  31. }
  32. }
  33. </style>