2021-09-16 21:08:02 +02:00
|
|
|
import { computed, defineComponent, ref, watch } from 'vue'
|
|
|
|
|
import { CSignUp } from '../../../components/CSignUp'
|
|
|
|
|
import { useQuasar } from 'quasar'
|
|
|
|
|
import { useI18n } from '@/boot/i18n'
|
|
|
|
|
import { useUserStore } from '@store/UserStore'
|
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
|
|
|
|
|
|
export default defineComponent({
|
2021-12-02 10:12:57 +01:00
|
|
|
name: 'SignUp',
|
2021-09-16 21:08:02 +02:00
|
|
|
components: { CSignUp },
|
|
|
|
|
props: {},
|
|
|
|
|
setup() {
|
2021-10-04 01:29:15 +02:00
|
|
|
const $route = useRoute()
|
2021-09-16 21:08:02 +02:00
|
|
|
|
|
|
|
|
const adult = ref(false)
|
2021-10-04 01:29:15 +02:00
|
|
|
const invited = computed(() => $route.params.invited)
|
2021-09-16 21:08:02 +02:00
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
watch(invited, (newval, oldval) => {
|
|
|
|
|
console.log('$route.params.invited')
|
2021-10-04 01:29:15 +02:00
|
|
|
adult.value = !!$route.params.invited
|
2021-09-16 21:08:02 +02:00
|
|
|
})
|
|
|
|
|
|
2021-12-02 10:12:57 +01:00
|
|
|
return {}
|
2021-09-16 21:08:02 +02:00
|
|
|
},
|
|
|
|
|
})
|