register.vue 488 B

1234567891011121314151617181920
  1. <script lang="ts" setup>
  2. import type { LoginAndRegisterParams } from '@vben/common-ui';
  3. import { ref } from 'vue';
  4. import { AuthenticationRegister } from '@vben/common-ui';
  5. defineOptions({ name: 'Register' });
  6. const loading = ref(false);
  7. function handleSubmit(value: LoginAndRegisterParams) {
  8. // eslint-disable-next-line no-console
  9. console.log('register submit:', value);
  10. }
  11. </script>
  12. <template>
  13. <AuthenticationRegister :loading="loading" @submit="handleSubmit" />
  14. </template>