auth-modal.vue 630 B

123456789101112131415161718192021222324252627282930313233
  1. <!-- -->
  2. <template>
  3. <view v-if="authType !== ''">
  4. <ct-popup
  5. :show="authType !== 'login'"
  6. type="center"
  7. round="10"
  8. :showClose="false"
  9. @close="closeAuthModal"
  10. >
  11. <login />
  12. </ct-popup>
  13. </view>
  14. </template>
  15. <script setup>
  16. import { closeAuthModal } from '@/hooks/useModal'
  17. import ctPopup from '@/components/ui/ct-popup'
  18. import { modalStore } from '@/store/modal';
  19. import login from './authModal/login'
  20. const modal = modalStore()
  21. import { computed } from 'vue'
  22. // 授权弹窗类型
  23. const authType = computed(() => modal.auth)
  24. </script>
  25. <style lang="scss" scoped>
  26. </style>