index.vue 681 B

123456789101112131415161718192021222324252627282930313233343536
  1. <script setup lang="ts">
  2. import * as $api from "@/api/auth/index";
  3. import { onMounted, ref } from "vue";
  4. import Bind from "@/views/welcome/bind.vue";
  5. const bindRef = ref();
  6. defineOptions({
  7. name: "Welcome"
  8. });
  9. onMounted(() => {
  10. alert("sdfsf");
  11. $api.hasGoogleOtp().then((res: any) => {
  12. if (!res.result) {
  13. bindRef.value!.open({}, {}, "add");
  14. }
  15. });
  16. });
  17. </script>
  18. <template>
  19. <div class="max-w-full">
  20. <el-card style="width: 480px; border-radius: 8px" shadow="hover" >Alway11s</el-card>
  21. </div>
  22. <bind ref="bindRef" />
  23. </template>
  24. <style scoped>
  25. .grid-content {
  26. border-radius: 4px;
  27. min-height: 130px;
  28. }
  29. .ep-bg-purple {
  30. background: #fff;
  31. }
  32. </style>