navigation.vue 549 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <div class="navigation yes-events">
  3. <div class="btn" @click="toPage">农场确权</div>
  4. </div>
  5. </template>
  6. <script setup>
  7. import { useRouter } from "vue-router";
  8. const router = useRouter();
  9. const toPage = () =>{
  10. router.push('/authentic')
  11. }
  12. </script>
  13. <style lang="scss" scoped>
  14. .navigation{
  15. position: fixed;
  16. top: 34px;
  17. right: 25vw;
  18. .btn{
  19. width: 80px;
  20. height: 30px;
  21. text-align: center;
  22. line-height: 28px;
  23. border-radius: 5px;
  24. cursor: pointer;
  25. background: rgba(255,255,255,0.5);
  26. }
  27. }
  28. </style>