fix(board): address review feedback on components

This commit is contained in:
Jennie Robinson Faber 2026-04-14 17:08:52 +01:00
parent 33d27c5d9e
commit 4d9eb3c198
3 changed files with 26 additions and 11 deletions

View file

@ -97,6 +97,14 @@ const form = reactive({
const error = ref('')
watch(() => props.post, (p) => {
form.title = p?.title || ''
form.seeking = p?.seeking || ''
form.offering = p?.offering || ''
form.note = p?.note || ''
form.tags = Array.isArray(p?.tags) ? [...p.tags] : []
}, { immediate: false })
function toggleTag(slug) {
const idx = form.tags.indexOf(slug)
if (idx === -1) form.tags.push(slug)