add debug log

This commit is contained in:
einhornimmond 2025-10-01 14:40:34 +02:00
parent bff160a904
commit 84ebba4070
2 changed files with 15 additions and 1 deletions

View File

@ -22,7 +22,7 @@
</template>
<script setup>
import { ref, computed, onMounted } from 'vue'
import { ref, computed, onMounted, watch } from 'vue'
import { useQuery } from '@vue/apollo-composable'
import { useRoute } from 'vue-router'
import { reachableCommunities } from '@/graphql/communities.graphql'
@ -65,6 +65,13 @@ const communityIdentifier = computed(
() => route.params.communityIdentifier || props.communityIdentifier,
)
watch(
() => communityIdentifier.value,
(value) => {
console.log('CommunitySwitch.communityIdentifier.value', value)
},
)
function updateCommunity(community) {
// console.log('CommunitySwitch.updateCommunity...community=', community)
emit('update:model-value', community)

View File

@ -304,6 +304,13 @@ watch(
},
)
watch(
() => autoCommunityIdentifier.value,
(value) => {
console.log('autoCommunityIdentifier.value', value)
},
)
function onSubmit() {
const transformedForm = validationSchema.value.cast(form)
const parts = transformedForm.identifier.split('/')