index.vue.vm 487 B

123456789101112131415161718192021
  1. <template>
  2. <div class="jnpf-content-wrapper bg-white">
  3. <FormPopup @register="registerFormPopup" />
  4. </div>
  5. </template>
  6. <script lang="ts" setup>
  7. import { onMounted } from 'vue';
  8. import { usePopup } from '@/components/Popup';
  9. import FormPopup from './FormPopup.vue';
  10. const [registerFormPopup, { openPopup: openFormPopup }] = usePopup();
  11. function init() {
  12. openFormPopup(true, {});
  13. }
  14. onMounted(() => {
  15. init();
  16. });
  17. </script>