Transition.vue 589 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <div class="page">
  3. <GlobeTransition
  4. :durationMs="5000"
  5. :target="{ lon: 116.657, lat: 39.909, name: '北京·通州' }"
  6. @done="goHome"
  7. />
  8. </div>
  9. </template>
  10. <script>
  11. import GlobeTransition from "@/components/GlobeTransition.vue";
  12. export default {
  13. name: "Transition",
  14. components: { GlobeTransition },
  15. methods: {
  16. goHome() {
  17. this.$router.replace("/main");
  18. }
  19. }
  20. };
  21. </script>
  22. <style scoped>
  23. .page{
  24. width:100vw; height:100vh;
  25. background: radial-gradient(circle at 50% 50%, rgba(25,80,180,0.22), rgba(5,10,28,1) 65%);
  26. }
  27. </style>