123456789101112131415161718192021222324252627282930313233 |
- <!-- -->
- <template>
- <view v-if="authType !== ''">
- <ct-popup
- :show="authType === 'login'"
- type="center"
- round="10"
- :showClose="false"
- @close="closeAuthModal"
- >
- <login />
- </ct-popup>
- </view>
- </template>
- <script setup>
- import { closeAuthModal } from '@/hooks/useModal'
- import ctPopup from '@/components/ui/ct-popup'
- import { modalStore } from '@/store/modal';
- import login from './authModal/login'
- const modal = modalStore()
- import { computed } from 'vue'
- // 授权弹窗类型
- const authType = computed(() => modal.auth)
- </script>
- <style lang="scss" scoped>
- </style>
|